polaris icon indicating copy to clipboard operation
polaris copied to clipboard

[Button] Add “pressed” state

Open dleroux opened this issue 8 years ago • 7 comments

Problem

Sometimes buttons are used like a radio button, usually in a group but potentially on their own (as a toggle).

As implemented in polaris-rails: https://github.com/Shopify/polaris-ux/issues/58

Examples

screen shot 2017-10-12 at 6 21 06 pm

dleroux avatar May 17 '18 21:05 dleroux

@maxariss

dleroux avatar May 17 '18 22:05 dleroux

@dleroux can we close this in favour of the ToggleButton component that is currently in polaris-next?

yourpalsonja avatar Apr 18 '19 04:04 yourpalsonja

@yourpalsonja we can but this is the issue and not the pr so it should probably be closed once that that toggle buttons makes it into Polaris? Although it is a bit different. Your call :)

dleroux avatar Apr 18 '19 12:04 dleroux

After a chat with @yourpalsonja, we decided to leave this issue for now and figure out how to move the ToggleButton into Polaris from Polaris-next (instead of adding a confusing prop to Button).

mirualves avatar Jul 26 '19 13:07 mirualves

This work is currently on hold while the P-BOP team supports Tooling with updating the UI Kit for Figma.

dpersing avatar Aug 20 '19 16:08 dpersing

Hi @AndrewMusgrave! Any updates on this issue?

dpersing avatar Sep 18 '19 21:09 dpersing

@dpersing Had a slight delay, in the beginning, pinged Sonja for some information before I realized she was OOO 😅I opened a WIP draft pr (not up to date) #2148. I'm curring working on adding the pressed state for all the button types/modifiers. I'll probably be messaging @mirualves for some opinions on styles / UI kit updates Friday.

AndrewMusgrave avatar Sep 18 '19 22:09 AndrewMusgrave