question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Design update - secondary button with icon - Wagtail Design System

See original GitHub issue

Good first issue for someone confident with SCSS/CSS

Is your proposal related to a problem?

  • There is not yet a officially supported button with icon that aligns with the secondary button styles (outline only button)
  • If button-secondary is applied to the current bicolor button styles, it works but should align with the new official Wagtail Design System

Describe the solution you’d like

Normal size button-secondary with icon

Very similar to the bicolor currently but with different colours, must support all existing supported DOM elements for buttons (a, button, and input[submit).

  • Default
  • Hover
  • Disabled
  • Focus state (existing global focus outline)
Screen Shot 2022-09-14 at 4 55 27 pm

Normal size button-secondary with icon

When small and secondary the border is dropped, must support all existing supported DOM elements for buttons (a, button, and input[submit).

  • Default
  • Hover
  • Disabled (not shown)
  • Focus state (existing global focus outline)
Screen Shot 2022-09-14 at 4 56 31 pm

Describe alternatives you’ve considered

Leave as current state and do not document .button-secondary when used with .bicolor.

button bicolor button--icon button-secondary button bicolor button--icon button-secondary button-small
Screen Shot 2022-09-14 at 4 51 53 pm Screen Shot 2022-09-14 at 4 51 40 pm

Additional context

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:13 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
lb-commented, Oct 4, 2022

Partial work completed - pattern library & styleguide have been updated via https://github.com/wagtail/wagtail/pull/9243

Thanks @Adinapunyo-Banerjee

0reactions
Serembacommented, Oct 22, 2022

Hi @lb-, I have finished working on this issue. I am kindly asking for your review and suggestions on how to improve.

Thanks a lot

Read more comments on GitHub >

github_iconTop Results From Across the Web

UX Unification - button component with variations #8790
Overview In the Wagtail design system, we have new designs for our button component. ... Small secondary button with icon
Read more >
Wagtail 3.0 release notes
Implement new tabs design across the admin interface (Steven ... Further updates to the page editor are expected in the next release.
Read more >
Creating and Editing Wagtail Components - CFPB
The CFPB Design System describes the design and intended usage of many of ... The icon property tells Wagtail what icon to use...
Read more >
Customizing HTML/CSS in Templates — Wagtail CRX ...
For this tutorial, we will assume that you have basic knowledge of the Django templating system. You can read more about it by...
Read more >
Creating a Call to Action StreamField in Wagtail ... - YouTube
In this video we'll learn how to create a brand new StreamField using a StructBlock to create a Call to Action section on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found