-
Notifications
You must be signed in to change notification settings - Fork 3
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
UHF-9050 button refactor #785
Conversation
…tyles for the button v2 - probably needs a better name. :)
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.
Amazing work with this! Really good stuff! Just one question and small notice there on the button.scss file :)
padding: var(--spacing-2-xs) var(--spacing-2-xs); | ||
} | ||
|
||
/* FULL WIDTH */ |
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.
Change to one-line-comment style.
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.
Oops, right, these must have slipt past when changing HDS CSS comments to SCSS comments on our side
input[type='button'].hds-button--small, | ||
input[type='reset'].hds-button--small, | ||
input[type='submit'].hds-button--small { | ||
padding: var(--spacing-2-xs) var(--spacing-m); |
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.
This is overriding styles set on line 191. Is this intentional?
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.
This part of our code tries to closely follow HDS codes. This part is in https://github.com/City-of-Helsinki/helsinki-design-system/blob/dea8dde508c1f536eea84175be9c1a62d4f83878/packages/core/src/components/button/button.css#L232C12-L232C12 and has a same problem. So kind of intentional on our end, but do not know how intentional is it is on their end.
Closing this PR as the same feature and changes was merged in #810 |
UHF-9050
What was done
How to install
git pull origin dev
make fresh
composer require drupal/hdbt:dev-UHF-9050_button_refactor
make drush-cr
How to test
Designers review
Other PRs