Skip to content

Commit

Permalink
fix(popover): Popover max width update, fixing start issue (UIM-424) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonVay authored and pimenovoleg committed Apr 16, 2020
1 parent 90ee01f commit a7e4a17
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions packages/mosaic-dev/popover/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ app {

.popover-485 {
width: 485px;

.mc-popover {
max-width: 485px !important;
}
}


Expand Down
2 changes: 1 addition & 1 deletion packages/mosaic-dev/popover/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
class="trigger-button with-margin asdasd"
mc-button
mcPopover
mcPopoverClass="popover-485 this-class-not-available"
mcPopoverClass="popover-485 max-width-class"
mcPopoverHeader="Lorem ipsum"
mcPopoverPlacement="bottom"
mcPopoverSize="small"
Expand Down
6 changes: 3 additions & 3 deletions packages/mosaic/popover/popover.scss
Original file line number Diff line number Diff line change
Expand Up @@ -42,23 +42,23 @@ $mc-popover-large-width: 640px;
max-width: $mc-popover-small-width;

.mc-popover {
max-width: $mc-popover-small-width !important;
max-width: $mc-popover-small-width;
}
}

.mc-popover-normal {
max-width: $mc-popover-normal-width;

.mc-popover {
max-width: $mc-popover-normal-width !important;
max-width: $mc-popover-normal-width;
}
}

.mc-popover-large {
max-width: $mc-popover-large-width;

.mc-popover {
max-width: $mc-popover-large-width !important;
max-width: $mc-popover-large-width;
}
}

Expand Down

0 comments on commit a7e4a17

Please sign in to comment.