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(Settings): Added selection feature to the Settings #145

Merged
merged 5 commits into from
Nov 13, 2023

Conversation

Ruminat
Copy link
Contributor

@Ruminat Ruminat commented Nov 10, 2023

What's new

It is now possible to select a setting, a section or a page in the Settings component.
Here's how it looks.

Setting

image

Section

image

Page

Nothing fancy here — it just changes current page.

Storybook

You can try it out in the storybook — I added two links for selecting a setting and a section.

image

Possible usage

This can be used for settings links in URLs.
For example, one may add a button for copying a link to a setting using the renderRightAdornment property and after someone opens the page with the right link, we can open Settings with the needed selection through the use of React.useEffect.

One more thing

I also added an optional id property to SettingsItemProps and SettingsSectionProps (and also SettingsItem and SettingsPageSection).

@gravity-ui-bot
Copy link
Contributor

Preview is ready.

@Ruminat Ruminat merged commit 9cacfe2 into main Nov 13, 2023
3 checks passed
@Ruminat Ruminat deleted the feature/added-selection-to-settings branch November 13, 2023 14:37
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.

3 participants