Skip to content

Commit

Permalink
fix: updated spacing for tourtip and drawer-dialog (#1906)
Browse files Browse the repository at this point in the history
  • Loading branch information
agliga authored Oct 20, 2022
1 parent d273e51 commit 0231956
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 20 deletions.
2 changes: 1 addition & 1 deletion dist/drawer-dialog/drawer-dialog.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
.drawer-dialog__header {
display: flex;
flex-shrink: 0;
margin: 16px 16px 0;
margin: 20px 16px 0;
position: relative;
}
.drawer-dialog__header h1,
Expand Down
10 changes: 5 additions & 5 deletions dist/tourtip/tourtip.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ span.tourtip {
display: inline-block;
}
.tourtip__overlay {
border-radius: var(--bubble-border-radius, var(--border-radius-50));
border-radius: var(--bubble-border-radius, var(--border-radius-100));
filter: var(--bubble-filter);
font-size: 14px;
max-width: 344px;
Expand All @@ -20,7 +20,7 @@ span.tourtip {
position: absolute;
}
.tourtip__mask {
border-radius: var(--bubble-border-radius, var(--border-radius-50));
border-radius: var(--bubble-border-radius, var(--border-radius-100));
position: relative;
z-index: 1;
background-color: var(--tourtip-background-color, var(--color-background-primary));
Expand All @@ -31,7 +31,7 @@ span.tourtip__mask {
}
.tourtip__cell {
display: flex;
padding: 8px 16px;
padding: 16px;
word-break: break-word;
flex-wrap: wrap;
}
Expand Down Expand Up @@ -136,9 +136,9 @@ button.tourtip__close > svg {
top: 12px;
}
.tourtip__heading {
font-size: 1em;
font-size: 1.25rem;
font-weight: bold;
margin: 0 0 4px;
margin: 0 0 8px;
}
span.tourtip__heading {
display: block;
Expand Down
1 change: 1 addition & 0 deletions dist/variables/variables.less
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
@spacing-100: 8px;
@spacing-150: @spacing-100 * 1.5;
@spacing-200: @spacing-100 * 2;
@spacing-250: @spacing-100 * 2.5;
@spacing-300: @spacing-100 * 3;
@spacing-400: @spacing-100 * 4;
@spacing-600: @spacing-100 * 6;
Expand Down
2 changes: 1 addition & 1 deletion src/less/drawer-dialog/drawer-dialog.less
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
}

.drawer-dialog__header {
.dialog-header-content();
.dialog-header-content(@top-margin: @spacing-250);
}

.drawer-dialog__header .fake-link {
Expand Down
12 changes: 6 additions & 6 deletions src/less/mixins/private/bubble-mixins.less
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
drop-shadow(0 5px 17px rgba(0, 0, 0, 0.2));
}

.bubble() {
.border-radius-token(bubble-border-radius, border-radius-50);
.bubble(@border-radius-value: border-radius-50) {
.border-radius-token(bubble-border-radius, @border-radius-value);

filter: var(--bubble-filter);
font-size: 14px;
Expand All @@ -17,8 +17,8 @@
z-index: 1;
}

.bubble-mask() {
.border-radius-token(bubble-border-radius, border-radius-50);
.bubble-mask(@border-radius-value: border-radius-50) {
.border-radius-token(bubble-border-radius, @border-radius-value);
position: relative;
z-index: 1;
}
Expand All @@ -28,9 +28,9 @@
}

// creates basic layout
.bubble-cell() {
.bubble-cell(@tourtip-spacing: @spacing-100 @spacing-200) {
display: flex;
padding: @spacing-100 @spacing-200;
padding: @tourtip-spacing;
word-break: break-word;
}

Expand Down
4 changes: 2 additions & 2 deletions src/less/mixins/private/dialog-mixins.less
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@
max-width: calc(100% - 32px);
}

.dialog-header-content() {
.dialog-header-content(@top-margin: @spacing-200) {
display: flex;
// Fix for Safari not honoring min-height
flex-shrink: 0;
margin: @spacing-200 @spacing-200 0;
margin: @top-margin @spacing-200 0;
position: relative;

h1,
Expand Down
10 changes: 5 additions & 5 deletions src/less/tourtip/tourtip.less
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ span.tourtip {
}

.tourtip__overlay {
.bubble();
.bubble(@border-radius-value: border-radius-100);

display: none;
position: absolute;
}

.tourtip__mask {
.bubble-mask();
.bubble-mask(@border-radius-value: border-radius-100);
.background-color-token(tourtip-background-color, color-background-primary);
.color-token(tourtip-foreground-color, color-foreground-primary);
}
Expand All @@ -28,7 +28,7 @@ span.tourtip__mask {
}

.tourtip__cell {
.bubble-cell();
.bubble-cell(@tourtip-spacing: @spacing-200);

flex-wrap: wrap;

Expand Down Expand Up @@ -114,9 +114,9 @@ button.tourtip__close > svg {
}

.tourtip__heading {
font-size: 1em;
font-size: @font-size-20;
font-weight: bold;
margin: 0 0 @spacing-50;
margin: 0 0 @spacing-100;
}

span.tourtip__heading {
Expand Down
1 change: 1 addition & 0 deletions src/less/variables/variables.less
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
@spacing-100: 8px;
@spacing-150: @spacing-100 * 1.5;
@spacing-200: @spacing-100 * 2;
@spacing-250: @spacing-100 * 2.5;
@spacing-300: @spacing-100 * 3;
@spacing-400: @spacing-100 * 4;
@spacing-600: @spacing-100 * 6;
Expand Down

0 comments on commit 0231956

Please sign in to comment.