-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
in-canvas-for-x width:auto instead of width:inherit #11141
Conversation
Issue fix. Discussion can be found foundation#11124
Hi @RvWensen, Here are some recommentations your future PRs:
|
Thanks for the feedback! |
Thanks for the PR (and issue)! I'll test it tonigh. |
scss/components/_off-canvas.scss
Outdated
@@ -417,7 +417,7 @@ $breakpoint: small | |||
height: auto; | |||
position: static; | |||
background: inherit; | |||
width: inherit; | |||
width: auto; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This makes sense for width: auto
, but @SassNinja was there any reasons for using inherit
in the first place for properties that does not inherit their value by default (background
, overflow
, transition
...) ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
poke @SassNinja
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ncoden the in-canvas is supposed to just revert the off-canvas styles. Seems I was overusing the inherit
a bit ;)
You're replacements of the properties in talk look good to me 👍
> 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)
@RvWensen I did the same for all OffCanvas in-canvas properties. Let me know what you think about it. Poke @DanielRuf @SassNinja. |
scss/components/_off-canvas.scss
Outdated
@@ -417,7 +417,7 @@ $breakpoint: small | |||
height: auto; | |||
position: static; | |||
background: inherit; | |||
width: inherit; | |||
width: auto; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ncoden the in-canvas is supposed to just revert the off-canvas styles. Seems I was overusing the inherit
a bit ;)
You're replacements of the properties in talk look good to me 👍
lgtm 👍 The |
Issue fix.
Discussion can be found #11124