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

Rebrand icons in buttons and links #587

Merged
merged 2 commits into from
Mar 28, 2024

Conversation

MisRob
Copy link
Member

@MisRob MisRob commented Mar 22, 2024

Description

Rebrands icons in KButton, KRouterLink, and KExternalLink.

Before After
before after

Changelog

  • #587
    • Description: Rebrands icons in buttons and links
    • Products impact: UI
    • Addresses: -
    • Components: KButton, KRouterLink, KExternalLink
    • Breaking: no
    • Impacts a11y: -
    • Guidance: -

Steps to test

You can preview existing examples in the documentation build.

For more comprehensive preview, you could paste the following:

<KButton text="Button 1" :primary="true" appearance="raised-button" icon="back" iconAfter="forward" />
<KButton text="Button 2" :primary="false" appearance="raised-button" icon="back" iconAfter="forward" />
<KButton text="Button 3" :primary="true" appearance="raised-button" hasDropdown />
<KButton text="Button 4" :primary="false" appearance="raised-button" hasDropdown />
<KButton text="Button 5" :primary="true" appearance="flat-button" icon="back" iconAfter="forward" />
<KButton text="Button 6" :primary="false" appearance="flat-button" icon="back" iconAfter="forward" />
<KButton text="Button 7" :primary="true" appearance="flat-button" hasDropdown />
<KButton text="Button 8" :primary="false" appearance="flat-button" hasDropdown />
<KButton text="Button 9" :primary="true" appearance="basic-link" icon="back" iconAfter="forward" />
<KRouterLink :to="{}" text="Router Link 1" :primary="true" appearance="raised-button" icon="back" iconAfter="forward" />
<KRouterLink :to="{}" text="Router Link 2" :primary="false" appearance="raised-button" icon="back" iconAfter="forward" />
<KRouterLink :to="{}" text="Router Link 3" :primary="true" appearance="flat-button" icon="back" iconAfter="forward" />
<KRouterLink :to="{}" text="Router Link 4" :primary="false" appearance="flat-button" icon="back" iconAfter="forward" />
<KRouterLink :to="{}" text="Router Link 5" :primary="true" appearance="basic-link" icon="back" iconAfter="forward" />
<KExternalLink :to="{}" text="External Link 1" :primary="true" appearance="raised-button" icon="back" iconAfter="forward" />
<KExternalLink :to="{}" text="External Link 2" :primary="false" appearance="raised-button" icon="back" iconAfter="forward" />
<KExternalLink :to="{}" text="External Link 3" :primary="false" appearance="raised-button" openInNewTab />
<KExternalLink :to="{}" text="External Link 4" :primary="true" appearance="flat-button" icon="back" iconAfter="forward" />
<KExternalLink :to="{}" text="External Link 5" :primary="false" appearance="flat-button" icon="back" iconAfter="forward" />
<KExternalLink :to="{}" text="External Link 6" :primary="false" appearance="flat-button" openInNewTab />
<KExternalLink :to="{}" text="External Link 7" :primary="true" appearance="basic-link" icon="back" iconAfter="forward" />
<KExternalLink :to="{}" text="External Link 8" :primary="true" appearance="basic-link" openInNewTab />

Testing checklist

  • Contributor has fully tested the PR manually
  • If there are any front-end changes, before/after screenshots are included
  • Critical and brittle code paths are covered by unit tests
  • The change is described in the changelog section above

Reviewer guidance

  • Is the code clean and well-commented?
  • Are there tests for this change?
  • Are all UI components LTR and RTL compliant (if applicable)?
  • Add other things to check for here

After review

  • The changelog item has been pasted to the CHANGELOG.md

@MisRob MisRob force-pushed the rebrand-icon-buttons branch from 20b7ce4 to 6ce86fd Compare March 26, 2024 07:59
@MisRob MisRob force-pushed the rebrand-icon-buttons branch from 6ce86fd to b95e3c6 Compare March 26, 2024 08:01
@MisRob MisRob marked this pull request as ready for review March 26, 2024 08:18
@MisRob MisRob added the TODO: needs review Waiting for review label Mar 26, 2024
@rtibbles rtibbles self-assigned this Mar 26, 2024
Copy link
Member

@rtibbles rtibbles left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything here looks good to me. One note is that we might want to expand the documentation pages for each of these components to showcase the different styles here - could you file a follow up issue for that?

@rtibbles rtibbles merged commit a0e7c40 into learningequality:release-v4 Mar 28, 2024
8 checks passed
@MisRob
Copy link
Member Author

MisRob commented Mar 29, 2024

Thanks, @rtibbles, yes that'd be good

@AllanOXDi AllanOXDi mentioned this pull request Mar 29, 2024
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TODO: needs review Waiting for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants