-
Notifications
You must be signed in to change notification settings - Fork 971
Conversation
@@ -88,7 +88,7 @@ const styles = StyleSheet.create({ | |||
cursor: 'pointer', | |||
lineHeight: 1.25, | |||
width: 'auto', | |||
height: 'auto', | |||
height: '32px', |
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.
The reason why setting this value is to force the specified height. By setting it to auto
the value can slightly (~2px) change as it is not intended.
Known issue: with this change the buttons on Brave payments gets broken. Setting their height to 37px
would fix the issue.
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.
Otherwise: simply removing the font-size and padding specification on button.less makes the buttons size standard.
If the buttons become too small due to the change, then we would have to create another component like preferenceItem
.
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.
looks good to me. thanks....
needs rebase pls |
from a viewpoint of accessibility Fixes #9237 Auditors: Test Plan: 1. Open about:preferences#general 2. Change lang setting 3. Click 'No' with a mouse using an arm opposite to a dominant arm 4. Check if you could click the button more easily than the current one
Fixes #9238 Closes #9280 - Reorganize secondaryColor and primaryColor buttons - Add overflow-x to pre - Add secondaryColor to notificationItem Auditors: Test Plan: 1. Open about:styles#buttons 2. Make sure the notificationItem button is rendered as a white button 3. Make sure the code sample boxes are scrollable
I almost broke my arm doing this 😝 |
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.
++
Fixes #9237
Fixes #9238
Closes #9280
Test Plan 1
about:preferences#general
No
with a mouse using an arm opposite to a dominant armTest Plan 2
about:styles#buttons
Submitter Checklist:
git rebase -i
to squash commits (if needed).Test Plan:
Reviewer Checklist:
Tests