Skip to content

Commit

Permalink
fix(#2162): accordion padding for right and left icon position
Browse files Browse the repository at this point in the history
  • Loading branch information
vanessatran-ddi authored and ArakTaiRoth committed Oct 29, 2024
1 parent 73d7625 commit f299bb9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
on:blur={() => (_hovering = false)}
aria-controls={`${_accordionId}-content`}
aria-expanded={open === "true"}
class:iconRight={iconposition === "right"}
>

{#if iconposition === "left"}
Expand Down Expand Up @@ -156,7 +157,7 @@
summary {
min-height: 3.5rem;
padding: var(--goa-accordion-padding-heading);
padding: var(--goa-accordion-padding-heading-icon-left);
border: var(--goa-accordion-border);
border-radius: var(--goa-accordion-border-radius);
background-color: var(--goa-accordion-color-bg-heading);
Expand All @@ -170,6 +171,10 @@
position: relative;
}
summary.iconRight {
padding: var(--goa-accordion-padding-heading-icon-right);
}
summary:hover {
background-color: var(--goa-accordion-color-bg-heading-hover);
color: var(--goa-accordion-color-heading-hover);
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
},
"private": true,
"devDependencies": {
"@abgov/design-tokens": "^1.4.1",
"@abgov/design-tokens": "^1.4.2",
"@abgov/nx-release": "8.0.0",
"@angular-devkit/build-angular": "18.2.8",
"@angular-devkit/core": "18.1.4",
Expand Down

0 comments on commit f299bb9

Please sign in to comment.