Skip to content

Commit

Permalink
Align details component indent line with arrow down icon (#3423)
Browse files Browse the repository at this point in the history
  • Loading branch information
rmccar authored Nov 19, 2024
1 parent 14ad695 commit 6b7c00c
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 2 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.
3 changes: 1 addition & 2 deletions src/components/details/_details.scss
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,14 @@ $details-caret-width: 1.75rem;

&--open & {
&__icon {
left: -0.1rem;
top: 0.2rem;
transform: rotate(90deg);
}

&__content {
border-left: 4px solid var(--ons-color-borders-indent);
display: block;
margin: 1rem 0 0;
margin: 1rem 0 0 0.5rem;
padding: 0 0 0 1.5rem;
}
}
Expand Down
10 changes: 10 additions & 0 deletions src/components/details/example-details-open.njk
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{% from "components/details/_macro.njk" import onsDetails %}

{{
onsDetails({
"id": "details-example",
"title": "What is a photovoltaic system?",
"content": "<p>A typical photovoltaic system employs solar panels, each comprising a number of solar cells, which generate electrical power. PV installations may be ground-mounted, rooftop mounted or wall mounted. The mount may be fixed, or use a solar tracker to follow the sun across the sky.</p>",
"open": true
})
}}

0 comments on commit 6b7c00c

Please sign in to comment.