Skip to content

Focus style a11y - #7680

Merged
brandonkelly merged 14 commits into
3.6.12from
hotfix/focus-style-a11y
Apr 12, 2021
Merged

brandonkelly merged 14 commits into
3.6.12from
hotfix/focus-style-a11y

Conversation

@missmatsuko

@missmatsuko missmatsuko commented Mar 14, 2021 •

Copy link
Copy Markdown
Contributor

Description

Adds visible focus style to interactive elements such as links, buttons, and inputs.

I removed containerAttributes from the radio template because I didn't think it was used (couldn't find any attr blocks in the code base).

Requires craftcms/sass#5 and npm package update.

Related issues

Closes #6886

@missmatsuko
missmatsuko force-pushed the hotfix/focus-style-a11y branch from 33fe805 to 0c59d76 Compare April 1, 2021 18:49
@missmatsuko
missmatsuko force-pushed the hotfix/focus-style-a11y branch from 0c59d76 to 4d17c01 Compare April 1, 2021 18:49
Also makes radio styles more similar to checkbox styles.

Removed containerAttributes for radio input because there weren't any attr blocks in the code base.
@missmatsuko
missmatsuko requested a review from brandonkelly April 1, 2021 19:49
@brandonkelly
brandonkelly changed the base branch from develop to 3.6.12 April 12, 2021 23:50
@brandonkelly
brandonkelly marked this pull request as ready for review April 12, 2021 23:50
@brandonkelly
brandonkelly merged commit 758de98 into 3.6.12 Apr 12, 2021
@brandonkelly
brandonkelly deleted the hotfix/focus-style-a11y branch April 12, 2021 23:50
Comment on lines +8 to +10
class: (class ?? [])|explodeClass|merge([
'radio'
]|filter),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks like there was a bad merge or something here; class appears twice in the hash.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@benface Thanks for pointing that out! Fixed now (647fc1b).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add visually prominent focus styles for all focusable elements

3 participants