Skip to content

Commit

Permalink
fix: reset all OffCanvas properties when in in-canvas mode
Browse files Browse the repository at this point in the history
> Done some research. The incanvas feature always used `inherit`, without explicit reasons given. Most font properties should inherit but not `background`, `width`, `overflow`, `transition` as this is not their default value. I'll replace all of them.

See foundation#11141 (comment)
  • Loading branch information
ncoden committed Apr 11, 2018
1 parent 3d4734a commit ca18489
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scss/components/_off-canvas.scss
Original file line number Diff line number Diff line change
Expand Up @@ -416,10 +416,10 @@ $breakpoint: small
visibility: visible;
height: auto;
position: static;
background: inherit;
background: none;
width: auto;
overflow: inherit;
transition: inherit;
overflow: visible;
transition: none;

// Increase CSS specificity
&.position-left,
Expand Down

0 comments on commit ca18489

Please sign in to comment.