Skip to content

Commit

Permalink
Add cut-link class for link overrides (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
WenInCode committed Aug 29, 2023
1 parent 70c0cde commit 9c6df91
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/popular-cars-pump.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@hashicorp/consul-ui-toolkit': patch
---

Add cut-link class for link overrides
4 changes: 3 additions & 1 deletion toolkit/src/components/cut/list-item/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@
...attributes
>
{{#if (or @route @href @onClick)}}
{{! cut-link is a class that is used in the structure override classes to avoid applying
extra styles to the link from structure. (https://github.com/hashicorp/structure/blob/d00c8bf39c22b5490a4c6fa8bae951b934432dfb/packages/pds-ember/app/styles/pds/_overrides.scss) }}
<Hds::Interactive
class='cut-list-item__content-container active'
class='cut-link cut-list-item__content-container active'
@href={{this.href}}
@isRouteExternal={{@isRouteExternal}}
@route={{this.route}}
Expand Down

1 comment on commit 9c6df91

@vercel
Copy link

@vercel vercel bot commented on 9c6df91 Aug 29, 2023

Choose a reason for hiding this comment

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

Please sign in to comment.