Skip to content

Commit

Permalink
patterns/chip
Browse files Browse the repository at this point in the history
  • Loading branch information
jmuzina committed Jun 18, 2024
1 parent 57094c6 commit 21d8888
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 35 deletions.
1 change: 1 addition & 0 deletions redirects.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,4 @@
/docs/utilities/visualise-font-metrics: /docs/utilities/font-metrics
/docs/utilities/no-margin: /docs/utilities/margin-collapse
/docs/utilities/no-padding: /docs/utilities/margin-collapse
/docs/examples/patterns/chip/dark: /docs/examples/patterns/chip/default?theme=dark
16 changes: 16 additions & 0 deletions templates/docs/examples/patterns/chip/combined.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{% extends "_layouts/examples.html" %}
{% block title %}Chip / Combined{% endblock %}

{% block standalone_css %}patterns_chip{% endblock %}

{% block content %}
{% with is_combined = true %}
<section>{% include 'docs/examples/patterns/chip/colors.html' %}</section>
<section>{% include 'docs/examples/patterns/chip/default.html' %}</section>
<section>{% include 'docs/examples/patterns/chip/dense.html' %}</section>
<section>{% include 'docs/examples/patterns/chip/inline.html' %}</section>
<section>{% include 'docs/examples/patterns/chip/long-values.html' %}</section>
<section>{% include 'docs/examples/patterns/chip/variants.html' %}</section>
<section>{% include 'docs/examples/patterns/chip/with-dismiss.html' %}</section>
{% endwith %}
{% endblock %}
31 changes: 0 additions & 31 deletions templates/docs/examples/patterns/chip/dark.html

This file was deleted.

6 changes: 2 additions & 4 deletions templates/docs/patterns/chip/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,9 @@ View example of the inline chip pattern

## Dark chips

To use chips on a dark background the `is-dark` class can be applied. If the chip includes the dismiss icon, you'll need to add the `is-light` class to the icon. To ensure the dark chips are accessible, the background colour used must `#2b2b2b` or darker:
To use chips on a dark background the `is-dark` class can be applied. If the chip includes the dismiss icon, you'll need to add the `is-light` class to the icon. To ensure the dark chips are accessible, the background colour used must `#2b2b2b` or darker.

<div class="embedded-example"><a href="/docs/examples/patterns/chip/dark" class="js-example">
View example of the dark chip pattern
</a></div>
[See an example of chips on dark background](/docs/examples/patterns/chip/default?theme=dark)

## Import

Expand Down

0 comments on commit 21d8888

Please sign in to comment.