Skip to content
This repository has been archived by the owner on Dec 6, 2023. It is now read-only.

Add cut list item to link override #146

Merged
merged 3 commits into from
Aug 29, 2023
Merged

Conversation

WenInCode
Copy link
Contributor

Adds the consul ui toolkit list item to the any-link override.

Before:
Screenshot 2023-08-28 at 9 23 27 AM

After applying the class manually:
Screenshot 2023-08-28 at 9 24 41 AM

@vercel
Copy link

vercel bot commented Aug 28, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
structure ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 29, 2023 1:19pm

Copy link
Contributor

@didoo didoo left a comment

Choose a reason for hiding this comment

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

Added a suggestion.

@@ -65,7 +65,7 @@ $underline-width: 1px;

@mixin apply {
/* [debug] #{$_module}@apply */
:any-link:not(.pds-button, #{overrides.$hds-link-overrides-selectors}) {
:any-link:not(.pds-button, .cut-list-item > a.cut-list-item__content-container, #{overrides.$hds-link-overrides-selectors}) {
Copy link
Contributor

Choose a reason for hiding this comment

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

What do you think of introducing a new variable $cut-link-overrides-selectors in the overrides file https://github.com/hashicorp/structure/blob/d00c8bf39c22b5490a4c6fa8bae951b934432dfb/packages/pds-ember/app/styles/pds/_overrides.scss and use that instead, as generic "container"? In this way you can have a better control (also in the future) of the selectors in Cloud UI, adding your variable there too:

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@didoo great thinking 👍

@WenInCode
Copy link
Contributor Author

I've update this to add cut-link to a new variable in the overrides. Referenced in this toolkit PR.

Copy link
Contributor

@didoo didoo left a comment

Choose a reason for hiding this comment

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

👍

@didoo didoo merged commit 3157197 into main Aug 29, 2023
5 checks passed
@didoo didoo deleted the add-cut-list-item-to-link-override branch August 29, 2023 13:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants