-
Notifications
You must be signed in to change notification settings - Fork 65
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
New: Adapt buttons overhaul (fixes #469) #490
base: master
Are you sure you want to change the base?
Conversation
- focus state inherits from hover (as per existing component focus styles) - existing @visited vars are only used by components so grouped with content item
- focus state inherits from hover (as per existing focus styles) - locked state inherits from disabled (as per existing locked styles)
- Replace @btn-ui-color vars with @ui-color vars. Nav, Notify and Drawer btns inherit from their view colours. This sets an extra level of vars to define global ui colors or edit these separately as per existing Vanilla. - rename _buttonStates.less file to _state-mixins.less.
- ui-btn-controls vars added - shared Notify and Drawer btn styles combined into single ui-btn--controls mixin. Replacing .notify-btn-icon mixin.
- set menu item btn vars to inherit from item ui
- item ui locked state added - set .narrative__strapline-icon to inherit from narrative__strapline-btn to reduce additional state declaration styles
… controls and strapline - Narrative strapline icon background color set to transparent to prevent icon background obscuring the btn focus outline
- border-radius added - default drawer item vars represent current drawer styles - margin gives option to display items in a 'button style' - when margin is set, apply border to whole of button (not just bottom)
- drawer item selected state expanded to support aria-current="true" (used by languagepicker which should inherit selected, not disabled styling.
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 updating schemas @guywillis. All looking good. I've just added a few text amends.
Hi, @guywillis . This is looking great. Thanks for the hard work. I have a few comments/questions below.
Otherwise, great work! |
Hey @swashbuck, thank you for your comments and feedback.
I agree, I think I would prefer this visual too. Our initial reasoning for keeping the filled disabled buttons for the outline style were two fold:
I would not be adverse to changing this but having experimented with mimicking this change in others button areas it looks weaker to me than the filled version. Item
Item UI
Notify UI
I am not against such a change, it makes sense. Reflecting upon the names of the files
This change makes a lot of sense, I am in favour.
Predominantly, I prefer box shadow over border as it's more flexible:
I am in agreement here. It should be consistent and flow together. I think it would be best if we addressed this as a separate issue. |
Thanks, @guywillis . I agree with all your points. Fine with leaving the disabled outline styles as is. Should be simple enough to change in a custom theme. |
Hi @guywillis / @swashbuck, I've had a read through all comments above and I'm in agreement. I just have one preference regarding the following,
I agree with dropping 'Styles' from the files but think it makes sense to keep the folder as |
Fixes: #469
New
Note
The following has been implemented to prevent any breaking changes:
.notify-btn-icon
mixin left in for legacy support only (with comments). New.ui-btn-ctrl
provided as fallback for backwards compatibilty..btn-text
and.btn-icon
selectors for legacy support only (with comments).Summary