Closed taylorvnoj closed 1 month ago
Latest commit: |
85c21f7
|
Status: | ✅ Deploy successful! |
Preview URL: | https://adfc85cd.atlantis.pages.dev |
Branch Preview URL: | https://taylor-chip.atlantis.pages.dev |
Could not publish Pre-release for 9ab340194198399a34a0ef06bfb83feaa6582da8. View Logs
The problem is likely in the NPM Publish
or NPM CI
step in the Trigger Pre-release Build
Job.
Previous build information:
Published Pre-release for 9ab340194198399a34a0ef06bfb83feaa6582da8 with versions:
- @jobber/components@5.20.8-TAYLORchi.17+9ab34019
To install the new version(s) for Web run:
npm install @jobber/components@5.20.8-TAYLORchi.17+9ab34019 ```.
@chris-at-jobber we definitely need to get Storybook to show us that - I remember that happened with Combobox ğŸ˜
Here are the updates in product. No more blue focus state and using --color-surface--hover
on hover
Motivations
Chip.Suffix
should have anonClick
so that a custom event can be triggered, separate from clicking theChip
itselfChanges
Added
onClick
optional prop toChip.Suffix
If<Chip.Suffix />
receives anonClick
, the element becomes abutton
. If noonClick
is provided, the suffix remains aspan
element. I decided on this solution to maintain a semantically correct element whether there's anonClick
or not.testID
optional prop toChip.Suffix
I think it's safe to assume that if any consumer ofChip
wants to add a clickable suffix, they'll also want to test that interaction.ariaLabel
optional prop toChip.Suffix
To provide as much flexibility as possible, we're passing anariaLabel
for clarity to screen readers. For example:a new web story for
ClickableSuffix
, while keeping aSuffix
story without theonClick
more tests for
Chip.Suffix
:button
whenonClick
is passedspan
whenonClick
is not passedonClick
when suffix is clicked andonClick
is passedTesting
Draft PR here to test
onClick
withinChip.Suffix
Use the
Clickable Suffix
andSuffix
stories to test:onClick
can be passed to theChip.Suffix
onClick
behaviour on the suffix does not affectonClick
behaviour of the parent ChipIn Atlantis we use Github's built in pull request reviews.