feat(canopee): MessageBar organism — Apollo & LF (#897)#1827
Open
feat(canopee): MessageBar organism — Apollo & LF (#897)#1827
Conversation
3aa7831 to
8576fde
Compare
8576fde to
4685ee0
Compare
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



MessageBar — Apollo (Prospect) & LF (Client)
Ajoute l'organisme
MessageBarpour Apollo (Theme=Prospect) et LF (Theme=Client), conforme à Figma node18733:51839.Composition
Le composant a son propre layout maison (header + body + action) géré en CSS Grid avec des
grid-template-areasqui changent entre mobile et desktop. Aucun atome du design system n'est surchargé — leIcon(atome) est utilisé tel quel, et le bouton est passé via la propbutton(slot libre que le consommateur remplit avec sonButtonDS).À noter : sur Figma, la version mobile est dessinée avec une instance de
Accordion_Contextual, mais sa version desktop est dessinée à plat (variante--without_accordion). Les deux structures n'ont rien en commun visuellement, donc plutôt qu'imposer un atome accordéon partout et le neutraliser en CSS sur desktop (anti-pattern qui force des overrides du DS),MessageBargère lui-même son chevron de pliage mobile via un<button>+useState. C'est la même approche que les autres organismes du DS qui ont un comportement responsive distinct.Conformité Figma
account_balance-fillaccount_balance_wallet-fill--blue-040(#f5f5fblavender)--red-040var(--rem-24) var(--rem-120)"icon title button" / "icon body button"(icon vertical-aligned au top, body indenté sous le title)"icon title toggle" / "body" / "action"— body et action visibles uniquement quand--open--message-bar-title-font-size(16 mobile → 20 desktop) avec le patterncalc(... / --font-size-base * 1rem)repris deMessageCommonbutton, c'est leButtonDS du consommateur (pill--rounded-64Prospect, rectangulaire--rounded-8Client)API React
Captures Storybook (story "All", desktop 1400px)