-
Notifications
You must be signed in to change notification settings - Fork 205
[PANGOO-2905][BpkCheckbox]Checkbox With SVG #3774
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
Conversation
Visit https://backpack.github.io/storybook-prs/3774 to see this build running in a browser. |
Visit https://backpack.github.io/storybook-prs/3774 to see this build running in a browser. |
Visit https://backpack.github.io/storybook-prs/3774 to see this build running in a browser. |
Visit https://backpack.github.io/storybook-prs/3774 to see this build running in a browser. |
Visit https://backpack.github.io/storybook-prs/3774 to see this build running in a browser. |
Percy failed as expected, because the checkmark changed. |
Visit https://backpack.github.io/storybook-prs/3774 to see this build running in a browser. |
packages/bpk-mixins/_forms.scss
Outdated
background-repeat: no-repeat; | ||
background-position: $bpk-one-pixel-rem * 0.5 center; | ||
background-size: calc(100% - $bpk-one-pixel-rem * 2.5) auto; |
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.
Do we still need to declare background-repeat
background-position
background-size
again? seems we already declare them in L631-L633
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 yes, thanks for your reminding! They are deleted and tested
packages/bpk-mixins/_forms.scss
Outdated
background-position: $bpk-one-pixel-rem * 0.5 center; | ||
background-size: calc(100% - $bpk-one-pixel-rem * 2.5) auto; |
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.
Just out of curiosity, how do we get 0.5
and 2.5
here?
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.
That's only a subjective number to make the visual effect look good. The problem is that the left padding and the right padding of the svg I get are slightly different, it is not good looking without this adjustment.
Visit https://backpack.github.io/storybook-prs/3774 to see this build running in a browser. |
…backpack into PANGOO-2905/checkbox
Visit https://backpack.github.io/storybook-prs/3774 to see this build running in a browser. |
…backpack into PANGOO-2905/checkbox
Visit https://backpack.github.io/storybook-prs/3774 to see this build running in a browser. |
background-image: url('data:image/svg+xml,%3Csvg%20width%3D%2213%22%20height%3D%229%22%20viewBox%3D%220%200%2013%209%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M2.35352%203.64648L5.5%207.5L11.5%201.5%22%20stroke%3D%22white%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E'); | ||
background-repeat: no-repeat; | ||
background-position: $bpk-one-pixel-rem center; | ||
background-size: calc(100% - $bpk-one-pixel-rem * 2.5) auto; |
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.
note here: the design has confirmed with the backpack designer by @senzg
Remember to include the following changes:
[KOA-123][BpkButton] Updating the colour
README.md
(If you have created a new component)README.md