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

feat(suite): Add cursor: not-allowed to some components when disabled #13251

Merged
merged 1 commit into from
Jul 12, 2024

Conversation

hstastna
Copy link
Contributor

@hstastna hstastna commented Jul 9, 2024

Description

Add cursor: not-allowed for cursor to look nicer to some more of the interactive/input components in our design system, when being disabled.

Additionally, add args and argTypes in storybook for components that are missing them so one could easily change the values of selected component's props in storybook.

This PR takes care about the following components:

  • AutoscalingInput
  • Range
  • Select
  • SelectBar
  • Switch

Also for Button component, add way to choose from all the available icons in storybook, incl. choosing the option "No icon" in storybook, as the icon prop is optional.

For AutoscalingInput, add story for playing with its props, use the existing one to just show the examples.

TODO (in followup PR):

  • Textarea
  • IconButton
  • PinButton
  • TextButton
  • TooltipButton

Related Issue

Resolve #12945

Screenshots:

Before:
Example: Label component
label_before

After:
Example: Label component: updated cursor when disabled + added more controls to storybook
label_after

Button component: now you can easily choose an icon if you want, or also not:
icons

@hstastna hstastna marked this pull request as draft July 9, 2024 13:35
@hstastna hstastna force-pushed the feat/12945-add-cursor-not-allowed-more-components branch from 779f393 to 249a9b9 Compare July 9, 2024 13:38
@hstastna hstastna marked this pull request as ready for review July 9, 2024 13:49
@hstastna hstastna force-pushed the feat/12945-add-cursor-not-allowed-more-components branch 2 times, most recently from 34c3b52 to d1a3b60 Compare July 10, 2024 08:19
@peter-sanderson peter-sanderson removed their request for review July 11, 2024 09:01
@hstastna hstastna requested a review from peter-sanderson July 11, 2024 11:02
@hstastna hstastna force-pushed the feat/12945-add-cursor-not-allowed-more-components branch from d1a3b60 to 276285a Compare July 11, 2024 11:03
@hstastna hstastna force-pushed the feat/12945-add-cursor-not-allowed-more-components branch from 1a07151 to e099ff6 Compare July 12, 2024 13:31
@hstastna hstastna requested a review from peter-sanderson July 12, 2024 13:31
@hstastna hstastna force-pushed the feat/12945-add-cursor-not-allowed-more-components branch from e099ff6 to 122c038 Compare July 12, 2024 14:04
@hstastna hstastna merged commit dd008d0 into develop Jul 12, 2024
22 of 24 checks passed
@hstastna hstastna deleted the feat/12945-add-cursor-not-allowed-more-components branch July 12, 2024 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add cursor:not-allowed to disable components
2 participants