Skip to content

Commit

Permalink
Update description list inline variant to use grid-auto-flow: column (
Browse files Browse the repository at this point in the history
  • Loading branch information
precious-onyenaucheya-ons authored Feb 20, 2025
1 parent d4d4e17 commit 8bfe079
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 14 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions src/components/description-list/_description-list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@
@include mq(l) {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-template-rows: repeat(2, 1fr);
grid-auto-flow: column;
gap: 0.5rem 2.5rem;

.ons-description-list__value {
Expand Down
16 changes: 8 additions & 8 deletions src/components/hero/example-hero-grey.njk
Original file line number Diff line number Diff line change
Expand Up @@ -41,34 +41,34 @@
]
},
{
"term": "Edition:",
"term": "Next release:",
"descriptions": [
{
"description": "Latest"
"description": "20 September 2024"
}
]
},
{
"term": "Contact:",
"term": "Edition:",
"descriptions": [
{
"description": "Retail Sales team"
"description": "Latest"
}
]
},
{
"term": "Next release:",
"term": "Releases:",
"descriptions": [
{
"description": "20 September 2024"
"description": "View previous releases"
}
]
},
{
"term": "Releases:",
"term": "Contact:",
"descriptions": [
{
"description": "View previous releases"
"description": "Retail Sales team"
}
]
}
Expand Down

0 comments on commit 8bfe079

Please sign in to comment.