Skip to content

Commit ab9779a

Browse files
committed
add comment and update utility classes doc
1 parent 03b8480 commit ab9779a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/front-end/utility-classes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ Most CSS classes used in this build are designed to fit with a particular compon
44

55
Some, such as the `listing` component are designed to be a base with variations across a number of variant components - this is made clear by the component naming: `listing--image.html`, `listing--simple.html` etc.
66

7-
However, we have some utility classes which are designed for re-use, along with the option to to use Tailwind utility classes. Classes that are designed for re-use include `button`, `heading--[xyz]`, `link`, `supporting` and `.body`.
7+
However, we have some utility classes which are designed for re-use, along with the option to to use Tailwind utility classes. Classes that are designed for re-use include `button`, `heading--[xyz]`, `link`, `supporting`, `.body` and `icon--listing-arrow`.
88

99
The same tailwind utility classes that are avialable in `wagtail-kit` are available in this build. `tailwind.config.js` includes the custom spacing for the build, allowing us to use classes such as `mb-spacerMini` where it wouldn't be practical to create a new scss component just for a one-off spacing adjustment.

tbx/static_src/sass/components/_icon.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
&--listing-arrow {
2828
@include arrow-link-icon-styles();
29-
margin-left: $spacer-mini-plus;
29+
margin-left: $spacer-mini-plus; // without this the arrows that are only on one line overlap the focus ring
3030
}
3131

3232
.template-404-page & {

0 commit comments

Comments
 (0)