Skip to content
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

Allow <a> tags to have underline #499

Merged
merged 2 commits into from
Nov 29, 2023
Merged

Conversation

bran-van-d
Copy link
Contributor

@bran-van-d bran-van-d commented Nov 17, 2023

Types of change

  • Bug fix (change which fixes an issue)

Description

We reviewed all of the boilerplate templates as part of an accessibility audit, and found that <a> tags failed the "Links must be distinguishable without relying on color" rule. Allowing <a> tags to have an underline satisfies this requirement, so we're removing the field default which removes them.

Checklist

People to notify

@bran-van-d bran-van-d marked this pull request as ready for review November 17, 2023 14:51
src/fields.json Outdated
"styles": {
"text-decoration": "none"
}
"color": "#0270E0"
Copy link
Member

Choose a reason for hiding this comment

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

Should we keep the style but switch it to "text-decoration": "underline" instead so the links have underline by default (or at least show in the UI for the field that way if the underline is applied by the absence of the none option being removed)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

They will be underline by default as that is the styling for a tags by the default, but having the underline set by default would offer some helpful communication via the field itself. I'll update!

@bran-van-d bran-van-d merged commit 237de6b into main Nov 29, 2023
1 check passed
@bran-van-d bran-van-d deleted the allow-a-tags-to-have-underline branch November 29, 2023 19:43
Christianwilms00 added a commit to Christianwilms00/cms-theme-boilerplate that referenced this pull request Jan 11, 2024
…ave-underline"

This reverts commit 237de6b, reversing
changes made to 98cee97.
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.

2 participants