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

Loading Button #3324

Open
origami-z opened this issue Apr 26, 2024 · 35 comments
Open

Loading Button #3324

origami-z opened this issue Apr 26, 2024 · 35 comments

Comments

@origami-z
Copy link
Contributor

origami-z commented Apr 26, 2024

Add examples to achieve pepper buttons (including necessary a11y attributes) to Salt storybook

Implementation:

  • Loading state should be identical to the bordered appearance for the sentiment
  • Loading should be triggered by a loading prop.
  • When Loading the contents of the button should be replaced with a Spinner and the button should stay the same size
  • When the Button is in a loading state, it should be announced to the SR.
    • The announcement might need to be controlled via a loadingAnnouncement prop.
    • We might be able to use the announcer hook here rather than inline the live region.
@mark-tate
Copy link
Contributor

Loading button color issue being worked on

@origami-z
Copy link
Contributor Author

Waiting for a11y review

@mark-tate
Copy link
Contributor

Zazu Goal: S(3)

  • Jared to feedback on a11y
  • Implement his suggestion

@mark-tate mark-tate changed the title Loading and Arrow Button examples Loading Button Jul 5, 2024
@mark-tate
Copy link
Contributor

This story used to be called Loading and Arrow Button but Arrow Button was removed as it is achievable already with a Button+Icon

@mark-tate
Copy link
Contributor

Goal: review required

@mark-tate
Copy link
Contributor

Goal: Merged to Core before end of Cappuccino

@origami-z
Copy link
Contributor Author

origami-z commented Aug 12, 2024

Aug 12 - blocked by button convo
Aug 16 - still blocked

@mark-tate
Copy link
Contributor

will unblock in wk2 of Espresso

@origami-z origami-z self-assigned this Sep 13, 2024
@origami-z
Copy link
Contributor Author

Frappe goal: Re-design based on latest button variants, if necessary. Implement and release.

@origami-z
Copy link
Contributor Author

origami-z commented Sep 23, 2024

Sep 23: can't find design specs around this, apart from changes in #3887 (unclear what loading prop is meant to do, with most responsibility still falls under the user's control)

@mark-tate
Copy link
Contributor

catchup on wed

@mark-tate
Copy link
Contributor

@bhoppers2008 to surface spec following button updates

@bhoppers2008 bhoppers2008 self-assigned this Sep 30, 2024
@bhoppers2008
Copy link

Darrin, Josh, Ben agreed new scope for loading button.
Ben to create updated spec.

@mark-tate
Copy link
Contributor

Galeo Goal: decide what it is ? @bhoppers2008
is it a pattern (button + spinner + announcer) ?

@mark-tate
Copy link
Contributor

@bhoppers2008 ping

@mark-tate
Copy link
Contributor

Latte goal: feature complete, pushed to Labs (needs a small amount of dev capacity)
Spec to be shared by end of wk1

@jake-costa
Copy link
Contributor

Missing A11y Specs, @ivan-calderon Can you assist me with getting the a11y specs added. Keyboard should be the same as the button specs but also needs to include screen reader announcement.

@dplsek
Copy link

dplsek commented Oct 25, 2024

@bhoppers2008 has this spec been completed?

@ivan-calderon @jake-costa will look at providing the A11y spec when time permits.

@mark-tate
Copy link
Contributor

Lungo: @bhoppers2008 to update sprint goal

@bhoppers2008
Copy link

Moved to Macchiato sprint. No capacity in Lungo @mark-tate @joshwooding

@mark-tate
Copy link
Contributor

Macc Goal:
Complete by EOS, ready for Dev by EOS
Decision made by EOS on cost/value

@origami-z
Copy link
Contributor Author

Mocha Goal: ready for Dev by EOS

@mark-tate
Copy link
Contributor

Mocha Goal: ready for Dev by EOS

@bhoppers2008 for visibility

@yunjungyeh yunjungyeh self-assigned this Nov 27, 2024
@yunjungyeh
Copy link
Contributor

yunjungyeh commented Dec 2, 2024

Wed 27 Nov - Scope notes from @bhoppers2008

  • Takes the default bordered appearance (in all cases)
  • displayed if action after any button click can’t happen immediately
  • after what period should it time out (example(? Check), we make recommendation - recommend use of salt duration tokens-if need check with paul)
  • cursor is always arrow (loading button is not clickable)
    • loading button doesn’t have states
  • what happens if the loading fails? what next...
  • ada spec + review with jake (its not clickable, should it receive focus? button had focus beforehand, on enter/space press what happens to focus?)
  • docs - see if you can reuse any of ivans examples (probably limited examples... when you click a button what happens)
  • figma - check with josh if its a) part of button or b) a separate component
    a) loading button is new component set in button (not variant)
    b) its own component

@yunjungyeh
Copy link
Contributor

Wed 4 Dec - initial Characteristic/Interaction/Accessibility Specs ready for review, some ADA questions to be discussed together with @jake-costa @joshwooding @bhoppers2008

@mark-tate
Copy link
Contributor

red eye: discussion moved to next week, when Josh is back

@mark-tate
Copy link
Contributor

Red eye: one more token to add progress cursor, follow up with jake required on detailed a11y requirements.
Add Figma component.
Push to labs by EOS a known quantity.

@bhoppers2008 bhoppers2008 removed their assignment Dec 10, 2024
@chrispcode
Copy link
Contributor

Working on it: PR here - #4502

@bhoppers2008
Copy link

@joshwooding @jake-costa to review requirements following accessibility engineering feedback.

Goal: Publish to core end of this sprint.

@dplsek
Copy link

dplsek commented Jan 9, 2025

PR is still up... plan is to merge the loading functionality by end of sprint... further discussions necessary for announcements and accessibility @jake-costa @joshwooding

@yunjungyeh to look at creating corresponding figma components

@bhoppers2008
Copy link

Kris/ Yun/ Jake aligned on requirements for Loading Button.
Kris to create examples today (or tomorrow).
Sprint goal: On track for core release.
No extra support required.

@bhoppers2008
Copy link

Finalising the examples and on track for delivery this sprint.

@yunjungyeh
Copy link
Contributor

Fri 17 Jan - Figma components completed

@mark-tate
Copy link
Contributor

Tecno goal:
team priority to get this merged with

  • API signed off by Josh
  • Jake a11y
  • Yun to sign off design
  • docs signoff by Yun

@mark-tate
Copy link
Contributor

PR up:
Call with Jake to signoff examples and then we can merge to Core in next release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment