-
-
Notifications
You must be signed in to change notification settings - Fork 79k
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
Changes popovers from px to rem #23776
Conversation
b25b3d4
to
bb1ce01
Compare
scss/_popover.scss
Outdated
@@ -5,7 +5,7 @@ | |||
z-index: $zindex-popover; | |||
display: block; | |||
max-width: $popover-max-width; | |||
padding: $popover-inner-padding; | |||
// padding: $popover-inner-padding; |
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.
Remove instead of commenting out
scss/_popover.scss
Outdated
border-top-color: $popover-arrow-outer-color; | ||
} | ||
|
||
.arrow::after { | ||
bottom: -($popover-arrow-outer-width - 1); | ||
margin-left: -($popover-arrow-outer-width - 5); | ||
bottom: calc((#{$popover-arrow-width} - 1px) * -1); |
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.
Change the 1px
here and elsewhere to $popover-border-width
?
@andresgalante: I rebased and removed the commented out code. Only thing left is to take care of the other @mdo's comment. |
scss/_variables.scss
Outdated
$popover-bg: $white !default; | ||
$popover-max-width: 276px !default; | ||
$popover-max-width: 17.5rem !default; |
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.
Shouldn't this stay in px
?
|
||
$popover-arrow-width: 10px !default; | ||
$popover-arrow-height: 5px !default; | ||
$popover-arrow-width: .8rem !default; |
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.
Same for these two?
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.
@XhmikosR I would say yes for the max-width since we measure grids in px
but not for the size of the arrow. But I am not sure, What do you think?
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.
@XhmikosR actually, if the root font size changes, we want to space of the popover to be larger.
So, maybe the max-width should in rems too, right?
8448e28
to
f30dc48
Compare
Following the same idea of #23468 with tooltips, this PR is changing
px
units torem
to meassure popovers.It also nukes the fancy white border as discussed and closes #23763
This is how it looks with shadows turn on: