-
Notifications
You must be signed in to change notification settings - Fork 900
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
Update Brave merch store subtext on benefits card on Rewards page #27211
Update Brave merch store subtext on benefits card on Rewards page #27211
Conversation
@@ -29,6 +29,7 @@ import { scoped } from '../../lib/scoped_css' | |||
--leo-icon-size: 28px; | |||
--leo-icon-color: ${color.white}; | |||
|
|||
min-width: 48px; |
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.
Without this, the icon was being stretched vertically when the text expanded beyond a single line.
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.
Thanks for catching this - I think this is flexbox shrinking the element. Doing:
flex-shrink: 0;
or
flex: 0 0 auto;
might also work.
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.
Nice, I went with flex-shrink
and that seems to work great. Thanks!
@@ -29,6 +29,7 @@ import { scoped } from '../../lib/scoped_css' | |||
--leo-icon-size: 28px; | |||
--leo-icon-color: ${color.white}; | |||
|
|||
min-width: 48px; |
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.
Thanks for catching this - I think this is flexbox shrinking the element. Doing:
flex-shrink: 0;
or
flex: 0 0 auto;
might also work.
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.
strings
++
A Storybook has been deployed to preview UI for the latest push |
ed62aed
to
dbb2802
Compare
Released in v1.76.12 |
Verification PASSED on
|
Resolves brave/brave-browser#43203
Submitter Checklist:
QA/Yes
orQA/No
;release-notes/include
orrelease-notes/exclude
;OS/...
) to the associated issuenpm run test -- brave_browser_tests
,npm run test -- brave_unit_tests
wikinpm run presubmit
wiki,npm run gn_check
,npm run tslint
git rebase master
(if needed)Reviewer Checklist:
gn
After-merge Checklist:
changes has landed on
Test Plan: