Skip to content
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

Merged
merged 14 commits into from
Jan 26, 2022

Conversation

mictro
Copy link
Contributor

@mictro mictro commented Jan 13, 2022

Which issue does this PR close?

This PR closes #1512

What is the new behavior?

Does this PR introduce a breaking change?

  • Yes
  • No

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

  • Make sure you have implemented tests following the guidelines in: "The good: Test".
  • Make sure you have updated the cookbook with examples and showcases (for bug fixes, enhancements & new components).

Review

  • Do a self-review.
  • Request that the changes are code-reviewed
  • Request that the changes are UX reviewed (only necessary if your PR introduces visual changes)

When the pull request has been approved it will be automatically merged to master via automerge.

@mictro mictro marked this pull request as draft January 13, 2022 07:45
@github-actions github-actions bot temporarily deployed to pr-1512-button-attention-levels January 13, 2022 12:03 Inactive
@github-actions github-actions bot temporarily deployed to pr-1512-button-attention-levels January 14, 2022 09:29 Inactive
@github-actions github-actions bot temporarily deployed to pr-1512-button-attention-levels January 17, 2022 12:14 Inactive
@github-actions github-actions bot temporarily deployed to pr-1512-button-attention-levels January 17, 2022 14:32 Inactive
@mictro mictro marked this pull request as ready for review January 18, 2022 07:51
@mictro mictro assigned mictro and unassigned MadsBuchmann Jan 18, 2022
Copy link
Collaborator

@RasmusKjeldgaard RasmusKjeldgaard left a 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.

@github-actions github-actions bot temporarily deployed to pr-1512-button-attention-levels January 20, 2022 15:16 Inactive
@mictro mictro force-pushed the enhancement/1512-button-attention-levels branch from 2c68ad4 to 1c4479d Compare January 21, 2022 13:14
@github-actions github-actions bot temporarily deployed to pr-1512-button-attention-levels January 21, 2022 13:20 Inactive
@mictro mictro force-pushed the enhancement/1512-button-attention-levels branch from 1c4479d to 4437d27 Compare January 21, 2022 13:22
@github-actions github-actions bot temporarily deployed to pr-1512-button-attention-levels January 21, 2022 13:32 Inactive
@RasmusKjeldgaard
Copy link
Collaborator

RasmusKjeldgaard commented Jan 21, 2022

Some quick thoughts, that are not related to code:

  1. Remember to change the title so it is worthy of a changelog! 😄
  2. Before merging this, we should make sure that we have created a description of the breaking change, alongside a guide for migration.

@mictro mictro force-pushed the enhancement/1512-button-attention-levels branch from 02e13c2 to 5411956 Compare January 22, 2022 05:44
@github-actions github-actions bot temporarily deployed to pr-1512-button-attention-levels January 22, 2022 05:45 Inactive
@mictro mictro changed the title Enhancement/1512 button attention levels Deprecated attention-level 4 on kirby-button Jan 22, 2022
@github-actions github-actions bot temporarily deployed to pr-1512-button-attention-levels January 22, 2022 05:50 Inactive
@mictro
Copy link
Contributor Author

mictro commented Jan 25, 2022

Some quick thoughts, that are not related to code:

  1. Remember to change the title so it is worthy of a changelog! 😄 - done!
  2. Before merging this, we should make sure that we have created a description of the breaking change, alongside a guide for migration. - done!

@mictro
Copy link
Contributor Author

mictro commented Jan 25, 2022

The latest changes has been merged with relationsbanken and all corrections requested by @henrikvoetmand has been verified in this context - looks good 😊

@jkaltoft jkaltoft linked an issue Jan 25, 2022 that may be closed by this pull request
13 tasks
Copy link
Collaborator

@RasmusKjeldgaard RasmusKjeldgaard left a 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 🚀

@mictro mictro merged commit 7617470 into release/next Jan 26, 2022
@mictro mictro deleted the enhancement/1512-button-attention-levels branch January 26, 2022 10:27
jkaltoft pushed a commit that referenced this pull request Feb 4, 2022
* 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>
jkaltoft pushed a commit that referenced this pull request Feb 8, 2022
* 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>
jkaltoft pushed a commit that referenced this pull request Feb 9, 2022
* 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>
jkaltoft pushed a commit that referenced this pull request Feb 9, 2022
* 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>
RasmusKjeldgaard pushed a commit that referenced this pull request Feb 10, 2022
* 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>
jkaltoft pushed a commit that referenced this pull request Feb 14, 2022
* 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>
jkaltoft pushed a commit that referenced this pull request Mar 14, 2022
* 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>
jkaltoft pushed a commit that referenced this pull request Mar 17, 2022
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Enhancement] Button attention levels
3 participants