-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Unify help description text styling #25852
Conversation
Remove help text styling and iterate to bring in no italics and also unify with other help text already in place.
Removes italics and brings in similar styling for help, desciptive text.
Size Change: +1.66 kB (0%) Total Size: 1.18 MB
ℹ️ View Unchanged
|
@@ -17,6 +17,8 @@ | |||
|
|||
.components-base-control__help { | |||
margin-top: -$grid-unit-10; | |||
font-style: italic; | |||
font-size: $default-font-size - 1px; |
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'd create a new $helptext-font-size and reference that directly.
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.
Oh, that's a great idea, spinning up those changes now! Thanks for review.
@@ -48,7 +48,9 @@ | |||
} | |||
|
|||
.components-form-token-field__help { | |||
font-style: italic; | |||
font-size: $default-font-size - 1px; |
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.
Should this be using the new $helptext-font-size
as well?
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.
Ah yes! I think I also found another instance. @aaroncampbell would you be able to do another code review, please? Fingers crossed I've caught all those pesky variables now. Thanks so much.
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.
Checked it out and looked for any other occurrences of $default-font-size
being adjusted and didn't see any. Looks good to me.
I almost wonder if there should be a |
This brings in the toolbar styling across help classes and also to the base help class. In my work on options I am currently having to work around the italic styling, so this will avoid me having to do that by fixing the base style. It also brings in the style to the sidebar. Linked to issue #25851.
Visuals of PR in action
Feedback
I am generally looking for code review on this PR and also looking for design feedback, specifically around where this could also be iterated if anything was missed class wise or other aspects.