-
Notifications
You must be signed in to change notification settings - Fork 23
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
Deprecated attention-level 4 on kirby-button #1993
Deprecated attention-level 4 on kirby-button #1993
Conversation
…tton-attention-levels
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.
Great work!
I have added some minor comments and questions.
apps/cookbook/src/app/examples/button-example/button-example.component.scss
Outdated
Show resolved
Hide resolved
apps/cookbook/src/app/showcase/button-showcase/button-showcase.component.html
Show resolved
Hide resolved
libs/designsystem/src/lib/components/button/button.component.integration.spec.ts
Show resolved
Hide resolved
libs/designsystem/src/lib/components/button/button.component.ts
Outdated
Show resolved
Hide resolved
2c68ad4
to
1c4479d
Compare
1c4479d
to
4437d27
Compare
Some quick thoughts, that are not related to code:
|
libs/designsystem/src/lib/components/button/button.component.ts
Outdated
Show resolved
Hide resolved
02e13c2
to
5411956
Compare
…tton-attention-levels
|
The latest changes has been merged with relationsbanken and all corrections requested by @henrikvoetmand has been verified in this context - looks good 😊 |
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.
Great work, looks like it is ready to merge 🚀
* Change name of kirby-button _disableAttentionLevel parameter to noDecoration * Change styling of attentionlevel2 and update button examples * Add styling of page header button * Change button attention level test * Change kirby-page-action button to attention level 3 * Add kirby-dropdown styling for attention-level 2 * Change page action button test to comply with UX change * Add missing styling on no-decoration * Remove none from button theme selector * Change attention-level-4 deprecation warning message on kirby-button * Change after Inspection * Change deprecation text Co-authored-by: Michael Troelsen <mxt@bankdata.dk>
* Change name of kirby-button _disableAttentionLevel parameter to noDecoration * Change styling of attentionlevel2 and update button examples * Add styling of page header button * Change button attention level test * Change kirby-page-action button to attention level 3 * Add kirby-dropdown styling for attention-level 2 * Change page action button test to comply with UX change * Add missing styling on no-decoration * Remove none from button theme selector * Change attention-level-4 deprecation warning message on kirby-button * Change after Inspection * Change deprecation text Co-authored-by: Michael Troelsen <mxt@bankdata.dk>
* Change name of kirby-button _disableAttentionLevel parameter to noDecoration * Change styling of attentionlevel2 and update button examples * Add styling of page header button * Change button attention level test * Change kirby-page-action button to attention level 3 * Add kirby-dropdown styling for attention-level 2 * Change page action button test to comply with UX change * Add missing styling on no-decoration * Remove none from button theme selector * Change attention-level-4 deprecation warning message on kirby-button * Change after Inspection * Change deprecation text Co-authored-by: Michael Troelsen <mxt@bankdata.dk>
* Change name of kirby-button _disableAttentionLevel parameter to noDecoration * Change styling of attentionlevel2 and update button examples * Add styling of page header button * Change button attention level test * Change kirby-page-action button to attention level 3 * Add kirby-dropdown styling for attention-level 2 * Change page action button test to comply with UX change * Add missing styling on no-decoration * Remove none from button theme selector * Change attention-level-4 deprecation warning message on kirby-button * Change after Inspection * Change deprecation text Co-authored-by: Michael Troelsen <mxt@bankdata.dk>
* Change name of kirby-button _disableAttentionLevel parameter to noDecoration * Change styling of attentionlevel2 and update button examples * Add styling of page header button * Change button attention level test * Change kirby-page-action button to attention level 3 * Add kirby-dropdown styling for attention-level 2 * Change page action button test to comply with UX change * Add missing styling on no-decoration * Remove none from button theme selector * Change attention-level-4 deprecation warning message on kirby-button * Change after Inspection * Change deprecation text Co-authored-by: Michael Troelsen <mxt@bankdata.dk>
* Change name of kirby-button _disableAttentionLevel parameter to noDecoration * Change styling of attentionlevel2 and update button examples * Add styling of page header button * Change button attention level test * Change kirby-page-action button to attention level 3 * Add kirby-dropdown styling for attention-level 2 * Change page action button test to comply with UX change * Add missing styling on no-decoration * Remove none from button theme selector * Change attention-level-4 deprecation warning message on kirby-button * Change after Inspection * Change deprecation text Co-authored-by: Michael Troelsen <mxt@bankdata.dk>
* Change name of kirby-button _disableAttentionLevel parameter to noDecoration * Change styling of attentionlevel2 and update button examples * Add styling of page header button * Change button attention level test * Change kirby-page-action button to attention level 3 * Add kirby-dropdown styling for attention-level 2 * Change page action button test to comply with UX change * Add missing styling on no-decoration * Remove none from button theme selector * Change attention-level-4 deprecation warning message on kirby-button * Change after Inspection * Change deprecation text Co-authored-by: Michael Troelsen <mxt@bankdata.dk>
* Change name of kirby-button _disableAttentionLevel parameter to noDecoration * Change styling of attentionlevel2 and update button examples * Add styling of page header button * Change button attention level test * Change kirby-page-action button to attention level 3 * Add kirby-dropdown styling for attention-level 2 * Change page action button test to comply with UX change * Add missing styling on no-decoration * Remove none from button theme selector * Change attention-level-4 deprecation warning message on kirby-button * Change after Inspection * Change deprecation text Co-authored-by: Michael Troelsen <mxt@bankdata.dk>
Which issue does this PR close?
This PR closes #1512
What is the new behavior?
Does this PR introduce a breaking change?
In order to clarify and simplify the design of the kirby-button attention-levels it has been revised as follows.
The attention-level 4 has been deprecated on kirby-button and the continued usage of this level will result in a console deprecation warning message and the button will be rendered as attention-level 3.
Up until now kirby-button with attention-level 4 has primarily been used for transparent icon-only buttons. The continued need for this specific kind of buttons has been recognized and is now available through a new 'noDecoration' parameter of kirby-button.
Furthermore the design of kirby-button on all light backgrounds is now identical to the their former presence on a 'white' kirby-card background. The biggest visual change will be on kirby-button's with attention-level 2 on a 'light' kirby-card which will have their background-color change from 'white' to a 'black'.
When migrating change attention-level 2 to attention-level 3 on all kirby-buttons which aren't black by design. Also replace all attention-level 4 usage on icon-only kirby-buttons with the no-decoration parameter ([noDecoration]="true").
Checklist:
The following tasks should be carried out in sequence in order to follow the process of contributing correctly.
Reminders
Review
When the pull request has been approved it will be automatically merged to master via automerge.