-
Notifications
You must be signed in to change notification settings - Fork 166
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
Add form legend required symbol #5214
Conversation
605081e
to
6f058be
Compare
Thanks @britneywwc, could you share some context to it, where do we show required on fieldset level instead of input level? |
Hi @bartaz. Yeah sure, when checkbox/radio inputs are grouped under a fieldset and we wish to set the legend for that fieldset group to show that it's required. We set required on the input level as well but the intention behind this is to show the required label (*) on the corresponding legend. Example use case here: https://github.com/canonical/ubuntu.com/blob/56e02eb43914c928fc20e553f75eb70ae56e4d74/templates/kernel/real-time/contact-us.html#L312 Please let me know it makes sense to add it to the legend field, it's ongoing work so I figured this could be upstreamed if useful. |
In such case I'd suggest making an example that reflects this use case (have a group of checkboxes inside the fieldset, rather than text input). |
0750f20
to
bafc2d5
Compare
There seem to be some linting/prettier issues that fail the tests. You can run For the linter failing that we don't allow element selectors, just disable linting for that (we are doing that for all base styles, because we expect them to be on elements). |
8d1c3ed
to
c7a9ab6
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.
Added a note about adding this to combined forms example to ensure this gets tested by Percy.
Also, I think this should set package.json
package version to 4.15.1
as 4.15.0
has already been released and no PR has updated main
to 4.15.1
yet.
edit: updated to 4.16.0 as we have since pushed a minor version update to staging :)
4934f40
to
562d209
Compare
Thanks for all the suggestions, I've addressed them in the recent pushes. Please have another look! |
Thanks @britneywwc ! Another thing - can we get an entry in releases.yml announcing the new class variant? |
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; please just roll back that content
/margin-right
change in the unresolved conversation and it's good to go!
59b040a
to
7a7a9e9
Compare
Done
is-required
class to fieldset legendFixes [list issues/bugs if needed]
QA
Check if PR is ready for release
If this PR contains Vanilla SCSS code changes, it should contain the following changes to make sure it's ready for the release:
Feature 🎁
,Breaking Change 💣
,Bug 🐛
,Documentation 📝
,Maintenance 🔨
.package.json
should be updated relative to the most recent release, following semver convention:Screenshots
[if relevant, include a screenshot or screen capture]