-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
feat(ListBox): add slug
prop to Dropdown
, MultiSelect
, ComboBox
, and Select
#15206
feat(ListBox): add slug
prop to Dropdown
, MultiSelect
, ComboBox
, and Select
#15206
Conversation
✅ Deploy Preview for v11-carbon-react ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
slug
prop to Dropdown
, MultiSelect
, and ComboBox
slug
prop to Dropdown
, MultiSelect
, ComboBox
, and Select
Percy error is due to the change in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No feedback, looks good!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know if that visual I commented about is blocking - everything else looks great
@tay1orjones I think this is just a side effect of the Update: actually, I think this is exacerbated because we now have a rounded border on the callout. We may have to bump the position of the caret a few pixels for the slug callout |
…x`, and `Select` (carbon-design-system#15206) * feat(TextInput): support slug prop * fix(TextInput): add types for slug prop * refactor(Slug): remove old file, move demo to form story * docs(Storybook): update form story * feat(NumberInput): add slug to NumberInput * refactor(NumberInput): remove pseudo elements and use box-shadow * style(NumberInput): fix issue with z-index, add invalid styles * feat(DatePicker): add slug prop to DatePickerInput * feat(TextArea): add slug prop to TextArea * test(snapshot): update snapshots * fix(TextArea): remove console warning * style(Fluid): adjust styles for fluid inputs * docs(Storybook): fix ids * fix(Slug): adjust positioning, add storybook controls * fix(Storybook): add story styles to form example * fix(Slug): adjust positioning when invalid, warning state * style(Slug): adjust padding when slug is present * docs(Storybook): add examples with revert functionality * fix(NumberInput): fix type error * refactor(storybook): adjust stories * feat(Slug): add revertLabel prop * fix(Undo): replace undo, redo with coreect asset * feat(ListBox): add Slug prop to ListBox components * fix(Slug): adjust revert positioning, remove margin * docs(Storybook): rearrange storybook order * fix(NumberInput): don't set defaultValue if not provided, remove console * feat(Select): add Slug prop to Select * chore(files): add ai-gradient to react package * test(snapshot): update snapshots * refactor(Slug): remove aria-hidden
@tw15egan @aagonzales I found a couple overlap and alignment issues. Are these tracked in issues yet? |
No issues for things like that yet, can you start one that has any issues you see with the 9 components merged in, and then which variant/state it's occurring? I just need to adjust some padding/positioning between fluid/default states, but I want to ensure I get them all. |
@tw15egan will do. I'll create the issue. |
…x`, and `Select` (carbon-design-system#15206) * feat(TextInput): support slug prop * fix(TextInput): add types for slug prop * refactor(Slug): remove old file, move demo to form story * docs(Storybook): update form story * feat(NumberInput): add slug to NumberInput * refactor(NumberInput): remove pseudo elements and use box-shadow * style(NumberInput): fix issue with z-index, add invalid styles * feat(DatePicker): add slug prop to DatePickerInput * feat(TextArea): add slug prop to TextArea * test(snapshot): update snapshots * fix(TextArea): remove console warning * style(Fluid): adjust styles for fluid inputs * docs(Storybook): fix ids * fix(Slug): adjust positioning, add storybook controls * fix(Storybook): add story styles to form example * fix(Slug): adjust positioning when invalid, warning state * style(Slug): adjust padding when slug is present * docs(Storybook): add examples with revert functionality * fix(NumberInput): fix type error * refactor(storybook): adjust stories * feat(Slug): add revertLabel prop * fix(Undo): replace undo, redo with coreect asset * feat(ListBox): add Slug prop to ListBox components * fix(Slug): adjust revert positioning, remove margin * docs(Storybook): rearrange storybook order * fix(NumberInput): don't set defaultValue if not provided, remove console * feat(Select): add Slug prop to Select * chore(files): add ai-gradient to react package * test(snapshot): update snapshots * refactor(Slug): remove aria-hidden
Closes #15188
Closes #15186
This PR adds the
slug
prop to allListBox
components (Dropdown
,MultiSelect
,FilterableMultiSelect
,and
ComboBox
) as well asSelect
.Changelog
New
slugLabel
added toSlug
that is passed down toToggletipButton
to change the text that is narrated when focusing on theSlug
with a screenreaderToggletip
orIconButton
via...rest
Listbox
components tolist-box.scss
,Select
stylesChanged
AI Form
story (Form
-->AI Form
in Storybook)Warning
icon inner path showing up with the incorrect color in dark themes (should always beblack-100
)Testing / Reviewing
Go to
Form --> Ai Form
in Storybook and ensure the components listed above match the spec