-
Notifications
You must be signed in to change notification settings - Fork 886
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix linting error in ft-input-tags.vue #2971
fix linting error in ft-input-tags.vue #2971
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the the label html element is always meant to be used in tandem with a html form element, e.g. showing a label next to a text field, in this case it would probably be better to switch to a |
Head branch was pushed to by a user without write access
I had wondered at that but didn't know the right thing to do. Thanks for the help. Have updated it to use a span and updated the css accordingly. Linting still passes.
And tag box still works |
@@ -20,7 +20,7 @@ | |||
v-for="tag in tagList" | |||
:key="tag.id" | |||
> | |||
<label>{{ tag }}</label> | |||
<span>{{ tag }}</span> | |||
<font-awesome-icon | |||
:icon="['fas', 'fa-times']" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably also add a ':title' and an ":aria-label' to this element that will be "Remove {tag}" so people with screen readers can tell that this is a remove button
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ChunkyProgrammer et al,
Do you mind if I do the screenreader accessibility update in a separate PR. This one atm fixes the issue its supposed to and It looks like it will take me a while to sort a screenreader fix.
Currently struggling to get a screenreader to work with freetube at all atm. I've got it reading out normal OS menu's etc but as soon as I tab to freetube it stops saying anything - same thing happens with brave, but some programs work like my password safe.
for reference i'm using Orca with espeak ( the built in linux screenreader with gnome )
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@petaded I understand you wanting to test accessibility changes, however as adding the title and aria-label attributes is standard web accessibility stuff, I think it's fine to do it without testing it with a screen reader.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As the linting error is blocking other PRs getting merged, I'll approve this and then PR the few accessibility lines myself.
@ChunkyProgrammer @absidue Here is some info to help you get it working properly. Sorry I didn't get this done quick enough to be in this PR. I appreciate your time reviewing PR's |
fix linting error in ft-input-tags.vue
Pull Request Type
Related issue
Linting is currently failing after #2849
Description
I don't quite understand why the lint error was not caught on the auto running checks on PR's.
Either way here is a fix for the linting error currently on the development branch.
Here is the reported error on dev branch:
Screenshots
Testing
Also tested the feature still works as expected. I added two channels to block. Then removed them.
Desktop
Additional context