Skip to content

Commit

Permalink
Fix <ul> elements with tna-container class to not show bullets
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosgood committed Jul 16, 2024
1 parent b3532f0 commit 9e6ebc7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed

- Tables are no longer automatically 100% width but can be made to be with `.tna-table--full`
- `<ul>` elements with the class `.tna-container` have their `list-style` removed

### Deprecated
### Removed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ const Template = ({ theme, accent }) => {
},
})}
<div class="tna-section tna-!--padding-bottom-s">
<ul class="tna-container tna-ul--no-list-style">
<ul class="tna-container">
<li class="tna-column tna-column--width-1-3 tna-column--width-1-2-small tna-column--full-tiny">
${Card({
params: {
Expand Down Expand Up @@ -598,7 +598,7 @@ const Template = ({ theme, accent }) => {
</div>
<hr>
<div class="tna-section">
<ul class="tna-container tna-ul--no-list-style">
<ul class="tna-container">
<li class="tna-column tna-column--width-2-3 tna-column--full-medium tna-column--full-small tna-column--full-tiny">
${Card({
params: {
Expand Down
5 changes: 5 additions & 0 deletions src/nationalarchives/utilities/grid/_index.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@use "sass:math";
@use "sass:selector";
@use "../../variables/grid" as gridVars;
@use "../../tools/grid";
@use "../../tools/media";
Expand Down Expand Up @@ -30,6 +31,10 @@
&--centred {
justify-content: center;
}

@at-root #{selector.unify("ul", &)} {
list-style: none;
}
}

.tna-column {
Expand Down

0 comments on commit 9e6ebc7

Please sign in to comment.