-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
feat(helper-text): move helper text below form inputs #5867
feat(helper-text): move helper text below form inputs #5867
Conversation
@dakahn is there anything I need to add to the helper text for a11y purposes? |
Deploy preview for carbon-elements ready! Built with commit cecc972 |
Deploy preview for carbon-elements ready! Built with commit 84b7a11 |
Deploy preview for carbon-components-react ready! Built with commit cecc972 https://deploy-preview-5867--carbon-components-react.netlify.app |
Deploy preview for carbon-components-react ready! Built with commit 84b7a11 https://deploy-preview-5867--carbon-components-react.netlify.app |
c777a07
to
0e8f515
Compare
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.
lgtm
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.
I think since we're just moving stuff around here we should be good. Typically you'd want aria-describedby
attributes on the inputs with IDs referencing the helper text. If we're missing those we can patch them up in another PR though.
Anyway we can sit on this one for one more day while we get the Downshift upgrade in? The merge conflicts wont be a huge deal if we need this ASAP for something else though. |
@dakahn for sure will wait to merge this until yours goes through. It will be much easier for me to fix merge conflicts 👊 |
🙏 sorry for the conflicts. Happy to help out if any of the changes seem weird though. |
1514cd3
to
4346f81
Compare
@dakahn @aledavila @jeanservaas updated this PR to account for the large Downshift changes we recently made, just want y'all to give it another look and make sure it still looks good! 👍 |
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.
Looks good, I did notice one kind of weird thing... it's only for Text Area... and it's only in Safari, but the spacing looks off
all other components look fine... I also inspected Text Area in Chrome and it was fine... weird
but both the helper text and the input label look a little further away from the field.
67fe5ff
to
a2ddc09
Compare
@jeanservaas nice catch, it seems like it was a safari only bug. I threw a |
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.
Thanks so so so so so so much for scrapping through those probably gnarly merge conflicts. 🙏
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.
LGTM basically, one question; Does the older version of markup in .hbs
work with the newer CSS? Thanks @tw15egan!
@asudoh older markup will still work, the margin just may be a bit tight |
Closes #5279
This PR moves the helper text for form inputs below the input themselves.
Changelog
Changed
$text-02
Removed
line-height
on form requirement text_textarea.scss
Testing / Reviewing
Check form elements and make sure they render correctly when invalid and in all other states.