-
Notifications
You must be signed in to change notification settings - Fork 419
RI-7740: update instances navigation styles #5206
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -44,6 +44,7 @@ import { EditIcon } from 'uiSrc/components/base/icons' | |
| import { Text } from 'uiSrc/components/base/text' | ||
| import { NumericInput } from 'uiSrc/components/base/inputs' | ||
| import { RiIcon } from 'uiSrc/components/base/icons/RiIcon' | ||
| import { Link } from 'uiSrc/components/base/link/Link' | ||
| import InstancesNavigationPopover from './components/instances-navigation-popover' | ||
| import styles from './styles.module.scss' | ||
|
|
||
|
|
@@ -159,19 +160,20 @@ const InstanceHeader = ({ onChangeDbIndex }: Props) => { | |
| : 'Redis Databases' | ||
| } | ||
| > | ||
| <Text | ||
| className={styles.breadCrumbLink} | ||
| <Link | ||
| color="subdued" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In most of the places we go away from this legacy EUI
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes, the default color of our Link is overrided for some reason. This color is the bluish one |
||
| underline | ||
| variant="inline" | ||
| aria-label={ | ||
| server?.buildType === BuildType.RedisStack | ||
| ? 'Edit database' | ||
| : 'Redis Databases' | ||
| } | ||
| data-testid="my-redis-db-btn" | ||
| onClick={goHome} | ||
| onKeyDown={goHome} | ||
| > | ||
| Databases | ||
| </Text> | ||
| </Link> | ||
| </RiTooltip> | ||
| </FeatureFlagComponent> | ||
| </div> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| import styled from 'styled-components' | ||
|
|
||
| import { Row } from 'uiSrc/components/base/layout/flex' | ||
|
|
||
| export const ButtonWrapper = styled(Row)` | ||
| cursor: pointer; | ||
| ` | ||
|
Comment on lines
+5
to
+7
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. not sure if this comment is valid but I saw we used |
||
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.
Tip: In the last few weeks, I have tried to remove all the SASS styles and migrate them to styled components when I deal with a particular component.
If you find the styles of these components to be simple enough, you can go for it as well.
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.
We have a dedicated tech debt task on the matter. I'd rather keep this PR short.
I usually do what you are saying as well, but only if I touch more components and half or fewer remain is sass