Skip to content

Commit

Permalink
Merge pull request #2120 from cfpb/ans_filter_tag_height
Browse files Browse the repository at this point in the history
Add filter tag anchor markup example
  • Loading branch information
anselmbradford authored Nov 19, 2024
2 parents 9575591 + 195cf5c commit 0c9acd2
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 0c9acd2

Please sign in to comment.