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

Unify help description text styling #25852

Merged
merged 4 commits into from
Oct 8, 2020
Merged

Unify help description text styling #25852

merged 4 commits into from
Oct 8, 2020

Conversation

karmatosed
Copy link
Member

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

image

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.

Tammie Lister added 2 commits October 6, 2020 08:57
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.
@github-actions
Copy link

github-actions bot commented Oct 6, 2020

Size Change: +1.66 kB (0%)

Total Size: 1.18 MB

Filename Size Change
build/block-editor/index.js 129 kB +17 B (0%)
build/block-library/index.js 135 kB -5 B (0%)
build/components/index.js 170 kB +1.03 kB (0%)
build/components/style-rtl.css 15.5 kB +133 B (0%)
build/components/style.css 15.4 kB +131 B (0%)
build/data/index.js 8.6 kB -2 B (0%)
build/edit-post/index.js 306 kB -3 B (0%)
build/edit-site/index.js 20.8 kB +394 B (1%)
build/edit-site/style-rtl.css 3.71 kB -123 B (3%)
build/edit-site/style.css 3.72 kB -121 B (3%)
build/edit-widgets/index.js 21.4 kB +210 B (0%)
build/editor/index.js 45.5 kB -1 B
build/format-library/index.js 7.48 kB -2 B (0%)
build/i18n/index.js 3.54 kB -1 B
build/media-utils/index.js 5.12 kB +1 B
build/redux-routine/index.js 2.85 kB -1 B
build/rich-text/index.js 13 kB +2 B (0%)
build/server-side-render/index.js 2.6 kB +1 B
build/url/index.js 4.06 kB +1 B
ℹ️ View Unchanged
Filename Size Change
build/a11y/index.js 1.14 kB 0 B
build/annotations/index.js 3.52 kB 0 B
build/api-fetch/index.js 3.35 kB 0 B
build/autop/index.js 2.72 kB 0 B
build/blob/index.js 668 B 0 B
build/block-directory/index.js 8.55 kB 0 B
build/block-directory/style-rtl.css 943 B 0 B
build/block-directory/style.css 942 B 0 B
build/block-editor/style-rtl.css 10.9 kB 0 B
build/block-editor/style.css 10.9 kB 0 B
build/block-library/editor-rtl.css 8.65 kB 0 B
build/block-library/editor.css 8.65 kB 0 B
build/block-library/style-rtl.css 7.66 kB 0 B
build/block-library/style.css 7.65 kB 0 B
build/block-library/theme-rtl.css 741 B 0 B
build/block-library/theme.css 741 B 0 B
build/block-serialization-default-parser/index.js 1.78 kB 0 B
build/block-serialization-spec-parser/index.js 3.1 kB 0 B
build/blocks/index.js 47.5 kB 0 B
build/compose/index.js 9.42 kB 0 B
build/core-data/index.js 12 kB 0 B
build/data-controls/index.js 685 B 0 B
build/date/index.js 31.9 kB 0 B
build/deprecated/index.js 772 B 0 B
build/dom-ready/index.js 568 B 0 B
build/dom/index.js 4.42 kB 0 B
build/edit-navigation/index.js 10.7 kB 0 B
build/edit-navigation/style-rtl.css 868 B 0 B
build/edit-navigation/style.css 871 B 0 B
build/edit-post/style-rtl.css 6.29 kB 0 B
build/edit-post/style.css 6.27 kB 0 B
build/edit-widgets/style-rtl.css 3 kB 0 B
build/edit-widgets/style.css 3 kB 0 B
build/editor/editor-styles-rtl.css 492 B 0 B
build/editor/editor-styles.css 493 B 0 B
build/editor/style-rtl.css 3.85 kB 0 B
build/editor/style.css 3.84 kB 0 B
build/element/index.js 4.44 kB 0 B
build/escape-html/index.js 734 B 0 B
build/format-library/style-rtl.css 547 B 0 B
build/format-library/style.css 548 B 0 B
build/hooks/index.js 1.74 kB 0 B
build/html-entities/index.js 621 B 0 B
build/is-shallow-equal/index.js 710 B 0 B
build/keyboard-shortcuts/index.js 2.39 kB 0 B
build/keycodes/index.js 1.85 kB 0 B
build/list-reusable-blocks/index.js 3.02 kB 0 B
build/list-reusable-blocks/style-rtl.css 476 B 0 B
build/list-reusable-blocks/style.css 476 B 0 B
build/notices/index.js 1.69 kB 0 B
build/nux/index.js 3.27 kB 0 B
build/nux/style-rtl.css 671 B 0 B
build/nux/style.css 668 B 0 B
build/plugins/index.js 2.44 kB 0 B
build/primitives/index.js 1.34 kB 0 B
build/priority-queue/index.js 790 B 0 B
build/shortcode/index.js 1.7 kB 0 B
build/token-list/index.js 1.24 kB 0 B
build/viewport/index.js 1.74 kB 0 B
build/warning/index.js 1.13 kB 0 B
build/wordcount/index.js 1.17 kB 0 B

compressed-size-action

@karmatosed karmatosed modified the milestones: 5.6, Gutenberg 9.2 Oct 6, 2020
@jasmussen
Copy link
Contributor

Before:

Screenshot 2020-10-07 at 10 36 09

Screenshot 2020-10-07 at 10 36 29

After:

Screenshot 2020-10-07 at 10 36 43

Screenshot 2020-10-07 at 10 36 51

This seems more legible to me than the italic font. I'm a fan.

@@ -17,6 +17,8 @@

.components-base-control__help {
margin-top: -$grid-unit-10;
font-style: italic;
font-size: $default-font-size - 1px;
Copy link
Contributor

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.

Copy link
Member Author

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;
Copy link
Member

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?

Copy link
Member Author

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.

Copy link
Member

@aaroncampbell aaroncampbell left a 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.

@karmatosed karmatosed merged commit f58dda0 into master Oct 8, 2020
@karmatosed karmatosed deleted the try/helpunify branch October 8, 2020 08:59
@MichaelArestad
Copy link
Contributor

I almost wonder if there should be a <HelpText> component with a few props for flexibility.

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.

4 participants