jpmorganchase / salt-ds

React UI components built with a focus on accessibility, customization and ease-of-use
https://www.saltdesignsystem.com
Apache License 2.0
132 stars 89 forks source link

Header Block component #3839

Open bhoppers2008 opened 3 months ago

bhoppers2008 commented 3 months ago

This issue will standardize a Header Block which can be composed into container components (Dialog, Drawer, Overlay) and provide a Header Block component.

Requirements

The Header Block will include the following attributes:

Component updates

The following components are updated to use the Header Block:

In all cases, if the container element needs to be closed via Close Button, the Header Block close button should be used.

Consideration: Should a Close Button component be created as it's own individual component?

Enhancement An overflow drop-shadow will be added at a later point.

Closes #3532 Closes #2970

origami-z commented 3 months ago

Need to think through how to play nicely with container's padding. e.g. Dialog has only top/bottom padding to make accent bar work. Drawer & Overlay have full paddings for the content (different spacing as well).

origami-z commented 3 months ago

Extend to 2 sprints, given multiple components, and user validation needed

tomhazledine commented 3 months ago

Figma spec complete. Ready for dev work to begin.

mark-tate commented 3 months ago

Cortado Goal: Kickoff required RC by EOS

dplsek commented 2 months ago

@tomhazledine link to Figma spec

origami-z commented 2 months ago

Aug 12 - starting dev tomorrow (one minor design update remaining)

dplsek commented 2 months ago

Aug 13th - had header block dev kick-off with @tomhazledine @navkaur76 @pseys

Open questions:

  1. if header block were used in overlay, how is it expected to work compared to how it currently does? (close button only vs requiring a header)
  2. will header block also be used in status dialogs?
  3. need to settle on a concept/name that works within the system for the different options (currently 200 and 300)

@bhoppers2008 @joshwooding would like to discuss more on these

navkaur76 commented 2 months ago

Meeting w/ @bhoppers2008 on Aug 14

Answers to Qs in Darrin's comment above:

  1. Content within an overlay will sit below the header and close button, spanning the entire width of the content area. Header block component will have an additional prop that hides all text elements within the parent container, so only the close button is on display.
  2. Yes - header block to be used in status dialogs. Nav to update component set to include status variants
  3. Naming convention for spacing-200 + 300 still TBD (cc @pseys @dplsek). Further discussion required on this.

Other:

tomhazledine commented 2 months ago

Aug 16 - dev in-progress. Expect RC by end of Monday

joshwooding commented 2 months ago

+1 sprint due to OOO and further design requirements

joshwooding commented 2 months ago

Aug 20 - Proposal created, ready for review by @bhoppers2008 and @joshwooding

origami-z commented 2 months ago

Feedback from MTK - existing Dialog header, if close button is positioned before the title, close button will not receive click event

<DialogCloseButton onClick={handleRequestClose} />
<DialogTitle header="Export" />
mark-tate commented 2 months ago

Espresso Goal to be released on 13th Sept, with a design review on 9th September

Deprecation strategy for design will be defined as part of this release

tomhazledine commented 2 months ago

Handover for design review by EOD 9th.

mark-tate commented 2 months ago

Nav to create a meeting to discuss the options for release by 13th Sept

tomhazledine commented 1 month ago

Following code review, implementing changes to component API to avoid "magic" and favour composition.

Branch for docs has been opened, but so far site docs and examples are WIP: https://github.com/jpmorganchase/salt-ds/pull/4095.

mark-tate commented 1 month ago

Frappe Goal: merged to Labs by EOS

tomhazledine commented 1 month ago

Refactoring following dev feedback, expect PR ready for dev-review tomorrow (18th)

mark-tate commented 1 month ago

Design review today, PR up for code review, examples may need updates ?

mark-tate commented 1 month ago

design review complete for dialog and overlay, outstanding issue with scrolling (long content with Safari chrome has no keyboard support) Take a defect on scrolling to avoid Header blocker

tomhazledine commented 1 month ago

Code changes following design review in-progress

mark-tate commented 1 month ago

Galao Goal: dev complete by end of wk1

mark-tate commented 1 month ago

@tomhazledine do we have an update on this ?

mark-tate commented 3 weeks ago

Latte: 1 week capacity wk1: Header for Overlay & Dialog available in Labs To move to core some work needed @bhoppers2008 to schedule remaining work

bhoppers2008 commented 3 weeks ago

No work to happen beyond pushing dialog and overlay header to labs in Latte. Updates to dialog/overlay core site examples and guidance and header block pattern page to be updated for core in Lungo sprint.

mark-tate commented 1 week ago

Lungo Goal: no dev capacity this sprint

bhoppers2008 commented 1 week ago

Moved to Macchiato sprint. No capacity in Lungo. @navkaur76 can resume the work when she returns from holiday. @mark-tate