Skip to content

Conversation

@KrumTy
Copy link
Collaborator

@KrumTy KrumTy commented Nov 18, 2025

What

  • Updates the Link component to support underlining
  • Updates styles for databases/rdi instances navigations

Testing

Before After
Screenshot 2025-11-18 at 18 08 42 Screenshot 2025-11-18 at 18 08 26
Screenshot 2025-11-18 at 18 08 52 Screenshot 2025-11-18 at 18 08 13
@KrumTy KrumTy changed the title Fe/ri 7740/db rdi navigation links RI-7740: update instances navigation styles Nov 18, 2025
Comment on lines +5 to +7
export const ButtonWrapper = styled(Row)`
cursor: pointer;
`
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure if this comment is valid but I saw we used role="button" property in other places to achieve this. or i'm missing something

@github-actions
Copy link
Contributor

Code Coverage - Frontend unit tests

St.
Category Percentage Covered / Total
🟢 Statements 82.66% 20542/24850
🟡 Branches 68.01% 8750/12866
🟡 Functions 77.52% 5556/7167
🟢 Lines 83.08% 20110/24205

Test suite run success

5325 tests passing in 689 suites.

Report generated by 🧪jest coverage report action from 928d546

<Text
className={styles.breadCrumbLink}
<Link
color="subdued"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In most of the places we go away from this legacy EUI subdued color, is there a reason why we use it here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The 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

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'
Copy link
Member

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.

Copy link
Collaborator Author

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

@KrumTy KrumTy merged commit 871a2f9 into main Nov 19, 2025
18 checks passed
@KrumTy KrumTy deleted the fe/RI-7740/db-rdi-navigation-links branch November 19, 2025 06:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants