Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Form] Use for=ID on radio/checkbox label.#24434

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fabpot merged 1 commit intosymfony:2.7fromNyholm:form-wcag-id
Oct 8, 2017

Conversation

@Nyholm
Copy link
Member

QA
Branch?master
Bug fix?no
New feature?yes
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets
LicenseMIT
Doc PR

I recently let Europe's leading accessibility experts (Funkanu.se) review a site of mine, they gave me (among other) this feedback.

Putting the checkbox/radio input inside the label is great, but the label still needs the "for=ID". Screen readers like Jaws does not work properly without this attribute.

@NyholmNyholm changed the titleUse for=ID on radio/checkbox label.[Form] Use for=ID on radio/checkbox label.Oct 5, 2017
{%endblockchoice_label %}

{%blockcheckbox_label -%}
{%-setlabel_attr=label_attr|merge({for:id}) -%}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Missing quotes{'for': id}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

really? I never quote the keys in Twig (unless strictly required because of white spaces, etc.)

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Quoting is no requirement in Twig. I thought Sebastian suggested it because it is a part of the code standard.

javiereguiluz reacted with thumbs up emoji
Copy link
Contributor

@sstoksstok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Good idea, but Twig key name needs to be quoted.
Also this is can be considered a bug fix 🤔

@Nyholm
Copy link
MemberAuthor

Thank you for the review. Yeah you might be correct. This could be considered a bugfix.

@xabbuh
Copy link
Member

To me that's a bugfix.

ro0NL reacted with thumbs up emoji

@fabpot
Copy link
Member

@Nyholm Can you change the base branch to 2.7 (I think that should be considered as a bug fix).

@NyholmNyholm changed the base branch frommaster to2.7October 5, 2017 14:56
@NyholmNyholm changed the base branch from2.7 tomasterOctober 5, 2017 14:56
@Nyholm
Copy link
MemberAuthor

Tried to do it on the phone and failed. Will fix this when I get to a computer.

Thank you for the reviews.

@NyholmNyholm changed the base branch frommaster to2.7October 6, 2017 01:30
This is required for some screen reader like Jaws
@Nyholm
Copy link
MemberAuthor

Added the fix for branch 2.7

@xabbuh
Copy link
Member

xabbuh commentedOct 6, 2017
edited
Loading

I wonder if we don't have to update any test fixtures.

@nicolas-grekasnicolas-grekas added this to the2.7 milestoneOct 8, 2017
@fabpot
Copy link
Member

Thank you@Nyholm.

@fabpotfabpot merged commit53d7857 intosymfony:2.7Oct 8, 2017
fabpot added a commit that referenced this pull requestOct 8, 2017
This PR was merged into the 2.7 branch.Discussion----------[Form] Use for=ID on radio/checkbox label.| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | yes| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets || License       | MIT| Doc PR        |I recently let Europe's leading accessibility experts (Funkanu.se) review a site of mine, they gave me (among other) this feedback.> Putting the checkbox/radio input inside the label is great, but the label still needs the "for=ID". Screen readers like Jaws does not work properly without this attribute.Commits-------53d7857 Use for=ID on radio/checkbox label.
@NyholmNyholm deleted the form-wcag-id branchOctober 13, 2017 03:00
This was referencedNov 10, 2017
@fabpotfabpot mentioned this pull requestNov 10, 2017
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@javiereguiluzjaviereguiluzjaviereguiluz left review comments

@fabpotfabpotfabpot approved these changes

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

+2 more reviewers

@sstoksstoksstok requested changes

@SimperfitSimperfitSimperfit approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

2.7

Development

Successfully merging this pull request may close these issues.

8 participants

@Nyholm@xabbuh@fabpot@javiereguiluz@nicolas-grekas@sstok@Simperfit@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp