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

DS-821 WWW: Button Icon Size Bug #2521

Merged
merged 1 commit into from
Aug 3, 2022

Conversation

MarcinMr
Copy link
Collaborator

@MarcinMr MarcinMr commented Aug 1, 2022

Jira

https://pegadigitalit.atlassian.net/browse/DS-821

Summary

Font size variable --e-bolt-button-font-size is adapted to the helper button class -> .e-bolt-button--*SIZE*

Details

  • The .e-bolt-button--small has small font size (--e-bolt-button-font-size: var(--bolt-type-font-size-small))
  • The .e-bolt-button--xsmall has xsmall font size (--e-bolt-button-font-size: var(--bolt-type-font-size-xsmall))
  • The only-icon buttons have the same --e-bolt-button-icon-only-size: 1.1em both in the case of .e-bolt-button--small and .e-bolt-button--xsmall

How to test

Pull the branch.

  • Go to /pattern-lab/?p=elements-button-size.
    👉 Check if the small button and the xsmall button have appropriate sizes of the font. The small button should have a small font-size and the xsmall button should have xsmall font-size.

  • Go to /pattern-lab/?p=elements-button-with-icon-only
    👉 If you add to the only-icon button a helper class .e-bolt-button--small or .e-bolt-button--xsmall both cases should have the same --e-bolt-button-icon-only-size: 1.1em

Visual changes

Buttons xsmall and small have adjusted font-size variables (small button - small font size, xsmall button - xsmall font size)

@github-actions github-actions bot added the type: bugfix List this PR in the 'Bug Fixes' section of the release notes. label Aug 1, 2022
Copy link
Contributor

@colbytcook colbytcook left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved

@colbytcook colbytcook merged commit ae9113d into master Aug 3, 2022
@colbytcook colbytcook deleted the bugfix/DS-821-WWW-Button-Icon-Size-Bug branch August 3, 2022 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bugfix List this PR in the 'Bug Fixes' section of the release notes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants