Skip to content

Commit 140a2c4

Browse files
authored
clean up button border radius/width (aws-amplify#6127)
1 parent 9e579c9 commit 140a2c4

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

src/styles/popover.scss

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
background: var(--amplify-colors-background-primary);
99
border-radius: var(--amplify-radii-medium);
1010
padding: var(--amplify-space-small);
11-
border: 2px solid var(--amplify-colors-teal-80);
11+
border: 1px solid var(--amplify-colors-teal-80);
1212
box-shadow: 0 1px 3px hsla(0, 0, 0, 0.3);
1313
min-width: 14rem;
1414
top: 100%;
15-
transform: translate(0, -2px);
15+
transform: translate(0, -1px);
1616
right: 0;
1717
&:focus-visible {
1818
outline: 2px solid var(--amplify-colors-border-focus);
@@ -52,6 +52,6 @@
5252
}
5353
100% {
5454
opacity: 1;
55-
transform: translate(0, -2px);
55+
transform: translate(0, -1px);
5656
}
5757
}

src/styles/split-button.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.split-button {
2-
gap: var(--amplify-space-xxxs);
2+
gap: 2px;
33
}
44

55
.split-button__start {

src/themes/baseTheme.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ export const baseTheme = createTheme({
4444
},
4545
components: {
4646
button: {
47-
borderRadius: { value: '{radii.large}' },
48-
borderWidth: { value: '{borderWidths.medium}' },
47+
borderRadius: { value: '{radii.medium}' },
4948
borderColor: { value: '{colors.brand.primary.80}' },
5049
backgroundColor: { value: '{colors.background.primary}' },
5150
color: { value: '{colors.brand.primary.80}' },

0 commit comments

Comments
 (0)