Skip to content

Commit

Permalink
Add filter tag link example
Browse files Browse the repository at this point in the history
  • Loading branch information
anselmbradford committed Nov 19, 2024
1 parent 9575591 commit 195cf5c
Show file tree
Hide file tree
Showing 14 changed files with 37 additions and 17 deletions.
13 changes: 13 additions & 0 deletions docs/pages/tags.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,19 @@ variation_groups:
</svg>
</button>
</li>
<li>
<a href="#" class="a-tag-filter">
A filter tag using an anchor element
<svg
xmlns="http://www.w3.org/2000/svg" class="cf-icon-svg
cf-icon-svg__error" viewBox="0 0 12 19"><path d="M11.383 13.644A1.03
1.03 0 0 1 9.928 15.1L6 11.172 2.072 15.1a1.03 1.03 0 1
1-1.455-1.456l3.928-3.928L.617 5.79a1.03 1.03 0 1 1 1.455-1.456L6
8.261l3.928-3.928a1.03 1.03 0 0 1 1.455 1.456L7.455
9.716z"></path>
</svg>
</a>
</li>
</ul>
variation_group_name: Types
behavior: To clear a filter tag selection, click the “x” icon inside of the filter tag.
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/cfpb-design-system/dist/index.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions packages/cfpb-design-system/dist/index.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/cfpb-design-system/dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/cfpb-design-system/dist/utilities/index.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions packages/cfpb-design-system/dist/utilities/index.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/cfpb-design-system/dist/utilities/index.js.map

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,20 @@
}

a.a-tag-filter {
line-height: normal;

// Colors for :link, :visited, :hover, :focus, :active.
@include u-link-colors(
var(--black),
var(--black),
var(--black),
var(--black),
var(--black)
var(--black),
var(--teal),
var(--teal),
var(--teal),
var(--teal),
var(--teal)
);
}

Expand Down

0 comments on commit 195cf5c

Please sign in to comment.