-
Notifications
You must be signed in to change notification settings - Fork 12
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
va-textarea: Move Headline location to be W3C compliant #1470
base: main
Are you sure you want to change the base?
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.
@Andrew565 For screen readers, it announced correctly and showed in the headings menu as expected.
However, I believe the heading styling is now getting overridden by .usa-label
:
Good catch, thanks! |
font-weight: inherit; | ||
|
||
.usa-label--required { | ||
font-family: "Source Sans Pro Web", "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans; |
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 have css properties for font families - https://github.com/department-of-veterans-affairs/component-library/blob/main/packages/css-library/dist/tokens/css/variables.css#L127
Would it be possible to use those here?
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.
Technically, yes, but I'd have to re-define those variables within the va-textarea.scss file because those variables aren't available in Storybook yet.
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.
Design approved!
Chromatic
https://3681-move-textarea-header--65a6e2ed2314f7b8f98609d8.chromatic.com
Description
Closes #3681
Moves the HeaderLevel element around so that it wraps the label element, since labels aren't supposed to have h1-h6 elements as their children.
QA Checklist
Screenshots
No visual changes.
Acceptance criteria
Definition of done