Skip to content

Commit

Permalink
Fix list summary variant spacing to match summary component (#3359)
Browse files Browse the repository at this point in the history
  • Loading branch information
rmccar authored Sep 17, 2024
1 parent acfb5a7 commit 961d454
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 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/list/_list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,10 @@
}
.ons-list__prefix,
.ons-list__suffix {
@extend .ons-u-m-no;
&--icon-check .ons-icon {
fill: var(--ons-color-leaf-green) !important;
@extend .ons-u-mr-s;
}
}
}
Expand Down
4 changes: 3 additions & 1 deletion src/components/list/example-summary-list.njk
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
{% from "components/list/_macro.njk" import onsList %}
{{
onsList({
"iconPosition": "before",
"variants": "summary",
"itemsList": [
{
"text": 'birth certificate'
"text": 'birth certificate',
"iconType": "check"
},
{
"text": 'national insurance number'
Expand Down

0 comments on commit 961d454

Please sign in to comment.