mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-26 04:09:50 +00:00
Bug 1854420 - re-add moz-button-group CSS rule to remove margins from slotted buttons r=emilio,desktop-theme-reviewers,reusable-components-reviewers,tgiles
Differential Revision: https://phabricator.services.mozilla.com/D189856
This commit is contained in:
parent
7872a09610
commit
4bd841541f
@ -37,8 +37,8 @@
|
||||
let secondBounds = b.getBoundingClientRect();
|
||||
|
||||
ok(firstBounds.right < secondBounds.left, `First button comes first`);
|
||||
let locationDiff = Math.abs(secondBounds.left - firstBounds.right - 12);
|
||||
ok(locationDiff < 1, `Second button is 12px after first (${locationDiff}, ${firstBounds.right}, ${secondBounds.left})`);
|
||||
let locationDiff = Math.abs(secondBounds.left - firstBounds.right - 8);
|
||||
ok(locationDiff < 1, `Second button is 8px after first (${locationDiff}, ${firstBounds.right}, ${secondBounds.left})`);
|
||||
};
|
||||
|
||||
ok(buttons.length >= 2, "There are at least 2 buttons to check");
|
||||
|
@ -7,6 +7,10 @@
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
::slotted(button) {
|
||||
margin: 0 !important;
|
||||
}
|
||||
|
||||
::slotted(button:not(:first-child, .popup-notification-dropmarker)) {
|
||||
margin-inline-start: 8px !important;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user