-
Notifications
You must be signed in to change notification settings - Fork 9
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
fix(UserSettings): fix highlight on search #972
Conversation
artemmufazalov
commented
Jul 2, 2024
•
edited
Loading
edited
<Settings.Item key={setting.title} {...setting}> | ||
{setting.content} | ||
</Settings.Item> | ||
); | ||
} | ||
return <Setting key={setting.settingKey} {...setting} />; | ||
return ( | ||
<Settings.Item key={setting.title} {...setting}> | ||
<Setting {...setting} /> | ||
</Settings.Item> | ||
); |
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.
Previously, there was I problem, that if Settings.Item
was not a direct child of Settings.Section
, title
was not rendered properly. To fix this, I mistakenly used highlightedTitle
, so search didn't highlight anything
@@ -31,7 +31,7 @@ const defaultUserSettings = settings; | |||
|
|||
defaultUserSettings[2].sections[0].settings.push({ | |||
title: i18n('settings.useClusterBalancerAsBackend.title'), | |||
helpPopoverContent: i18n('settings.useClusterBalancerAsBackend.popover'), | |||
description: i18n('settings.useClusterBalancerAsBackend.popover'), |
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.
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.
It looks good. However, I'd prefer to do it further, since it's not just an option in uikit component and requires some coding, and now we have quite enough space to display everything without scroll. Added issue to discuss it later: #974
5b0da1a
to
3348b27
Compare
@@ -31,7 +31,7 @@ const defaultUserSettings = settings; | |||
|
|||
defaultUserSettings[2].sections[0].settings.push({ | |||
title: i18n('settings.useClusterBalancerAsBackend.title'), | |||
helpPopoverContent: i18n('settings.useClusterBalancerAsBackend.popover'), | |||
description: i18n('settings.useClusterBalancerAsBackend.popover'), |
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.
3348b27
to
7f38d6a
Compare