Style toolbar buttons (#1086)
* chore: 🤖 move loading-button component to core addon
* style: toolbar buttons should align with Structure
* fix: buttons should have consistent font
This commit is contained in:
1 parent
043dbc3736
commit
702ad64716
4 files changed
+17
-18
No files matched your search
@@ -17,7 +17,8 @@ body {
|
||||
}
|
||||
|
||||
input,
|
||||
textarea {
|
||||
textarea,
|
||||
button {
|
||||
font-family: typography.$family-primary;
|
||||
}
|
||||
|
||||
|
||||
@@ -19,4 +19,3 @@
|
||||
@import 'link-button';
|
||||
@import 'badge';
|
||||
@import 'toolbar';
|
||||
@import 'loading-button';
|
||||
@@ -1,10 +0,0 @@
|
||||
@use '../variables/sizing';
|
||||
|
||||
.rose-loading-button {
|
||||
color: var(--stark);
|
||||
vertical-align: middle;
|
||||
margin: auto ($size-xs + $size-xxxs) auto auto;
|
||||
&.is-loading {
|
||||
color: var(--ui-gray-starker-1);
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
@use '../../variables/sizing';
|
||||
@use '../../variables/media';
|
||||
@use '../../utilities/type';
|
||||
|
||||
$xxs: sizing.rems(xxs); // 4
|
||||
$xxxxs: sizing.rems(xxxxs); // 1
|
||||
@@ -7,12 +8,20 @@ $xxxxs: sizing.rems(xxxxs); // 1
|
||||
.rose-toolbar {
|
||||
background-color: var(--ui-gray-subtler-6);
|
||||
padding: $xxs + $xxxxs;
|
||||
button {
|
||||
display: inline-block;
|
||||
font-weight: normal;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.rose-form {
|
||||
|
||||
// inside a toolbar, forms are always full-width
|
||||
.rose-form,
|
||||
.rose-form:not(.full-width) {
|
||||
display: flex;
|
||||
width: auto;
|
||||
}
|
||||
|
||||
.rose-button-inline-link-action {
|
||||
@include type.type(button, semibold);
|
||||
color: var(--stark);
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
$yPadding: sizing.rems(xxs) + sizing.rems(xxxs);
|
||||
padding: $yPadding sizing.rems(m);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user