Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add stacked topic tag group modifier #2042

Merged
merged 1 commit into from
Sep 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion docs/pages/tags.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ variation_groups:
<li>
<a href="#" class="a-tag-topic">
<span class="a-tag-topic__bullet" aria-hidden="true">•</span>
<span class="a-tag-topic__text">Discrimination</span>
<span class="a-tag-topic__text">Access to credit</span>
</a>
</li>

Expand All @@ -32,6 +32,26 @@ variation_groups:
</a>
</li>
</ol>

- variation_is_deprecated: false
variation_name: Topic tag (stacked)
variation_description: A topic tags group that is stacked at all screen sizes.
variation_code_snippet: >-
<ol class="m-tag-group m-tag-group--stacked">
<li>
<a href="#" class="a-tag-topic">
<span class="a-tag-topic__bullet" aria-hidden="true">•</span>
<span class="a-tag-topic__text">Open government</span>
</a>
</li>

<li>
<a href="#" class="a-tag-topic">
<span class="a-tag-topic__bullet" aria-hidden="true">•</span>
<span class="a-tag-topic__text">Banking</span>
</a>
</li>
</ol>
- variation_is_deprecated: false
variation_name: Filter tag
variation_description: Filter tags are used as a part of
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 @@ -123,8 +123,13 @@ a.a-tag-filter {
// Tablet and above.
@include respond-to-min($bp-sm-min) {
display: flex;
gap: math.div(15px, $btn-font-size) + em;
column-gap: math.div(15px, $btn-font-size) + em;
flex-wrap: wrap;

&--stacked {
flex-direction: column;
width: fit-content;
}
}

&:has(.a-tag-filter) {
Expand Down