Skip to content

Commit 5e661eb

Browse files
author
Luke Bowerman
authored
Correct a mis-step with extracting polished (#1605)
1 parent bfba282 commit 5e661eb

File tree

13 files changed

+27
-36
lines changed

13 files changed

+27
-36
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ We follow a [semantic versioning scheme](https://semver.org/). That means:
9090
1. Open PR for change review
9191
1. Merge PR
9292
1. Pull latest master
93-
1. `yarn lerna release`
93+
1. `yarn release`
9494

9595
### 4. Tooling
9696

packages/components/src/Button/ButtonBase.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,7 @@ export const buttonCSS = css<ButtonBaseProps>`
8282
${minWidth}
8383
${width}
8484
85-
${({ focusVisible, color }) =>
86-
focusVisible && `box-shadow: 0 0 0 0.15rem ${buttonShadow(color)};`}
85+
${({ focusVisible, color }) => focusVisible && buttonShadow(color)}
8786
8887
align-items: center;
8988
border-radius: ${({ theme }) => theme.radii.medium};

packages/components/src/Button/__snapshots__/Button.test.tsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ exports[`Button Focus: renders outline when tabbing into focus, but not when cli
7474

7575
exports[`Button Focus: renders outline when tabbing into focus, but not when clicking 2`] = `
7676
<button
77-
class="ButtonBase__ButtonOuter-sc-1bpio6j-0 kFFdak ButtonBase-sc-1bpio6j-1 Button-sc-18euc9m-0 dXZmpP"
77+
class="ButtonBase__ButtonOuter-sc-1bpio6j-0 cFuMRs ButtonBase-sc-1bpio6j-1 Button-sc-18euc9m-0 dXZmpP"
7878
>
7979
focus
8080
</button>

packages/components/src/Button/__snapshots__/ButtonOutline.test.tsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ exports[`ButtonOutline Focus: renders outline when tabbing into focus, but not w
7676

7777
exports[`ButtonOutline Focus: renders outline when tabbing into focus, but not when clicking 2`] = `
7878
<button
79-
class="ButtonBase__ButtonOuter-sc-1bpio6j-0 kFFdak ButtonBase-sc-1bpio6j-1 ButtonOutline-ncggc7-0 iADMFt"
79+
class="ButtonBase__ButtonOuter-sc-1bpio6j-0 cFuMRs ButtonBase-sc-1bpio6j-1 ButtonOutline-ncggc7-0 iADMFt"
8080
>
8181
focus
8282
</button>

packages/components/src/Button/__snapshots__/ButtonTransparent.test.tsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ exports[`ButtonTransparent Focus: renders outline when tabbing into focus, but n
7676

7777
exports[`ButtonTransparent Focus: renders outline when tabbing into focus, but not when clicking 2`] = `
7878
<button
79-
class="ButtonBase__ButtonOuter-sc-1bpio6j-0 kFFdak ButtonBase-sc-1bpio6j-1 ButtonTransparent-sc-799h13-0 dHitBk"
79+
class="ButtonBase__ButtonOuter-sc-1bpio6j-0 cFuMRs ButtonBase-sc-1bpio6j-1 ButtonTransparent-sc-799h13-0 dHitBk"
8080
>
8181
focus
8282
</button>

packages/components/src/Button/iconButtonColor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import { css } from 'styled-components'
2828
import { iconButtonColorDerivation } from '@looker/design-tokens'
2929

3030
export const iconButtonColor = css<{ toggle?: boolean }>`
31-
color: ${iconButtonColorDerivation};
31+
${iconButtonColorDerivation}
3232
3333
&:hover,
3434
&:focus,

packages/components/src/Calendar/Calendar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ export const Calendar = styled<FC<CalendarProps>>(InternalCalendar)`
212212
&:not(.DayPicker-Day--to):not(.DayPicker-Day--from) {
213213
background-color: ${({ theme: { colors }, disabled }) =>
214214
disabled ? colors.neutralAccent : colors.keyAccent};
215-
color: ${calendarMixColor};
215+
${calendarMixColor}
216216
}
217217
218218
&:not(.DayPicker-Day--to):not(.DayPicker-Day--from):not(.DayPicker-Day--outside) {

packages/components/src/Form/Inputs/ToggleSwitch/Knob.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ export const KnobContainer = styled(KnobContainerLayout)`
7171
transition: ${({ theme }) => theme.transitions.moderate}ms;
7272
7373
&:hover {
74-
${({ disabled }) =>
75-
disabled && `box-shadow: 0 0 0.01rem 0.01rem ${knobShadowColor};`}
74+
${({ disabled }) => disabled && knobShadowColor}
7675
}
7776
`

packages/components/src/Form/Inputs/ToggleSwitch/ToggleSwitch.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export const ToggleSwitch = styled(ToggleSwitchLayout)`
104104
z-index: 1;
105105
106106
&:focus + div {
107-
box-shadow: 0 0 0 0.2rem ${toggleSwitchShadowColor};
107+
${toggleSwitchShadowColor}
108108
}
109109
}
110110
`

packages/components/src/Form/Inputs/ToggleSwitch/__snapshots__/ToggleSwitch.test.tsx.snap

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -241,11 +241,9 @@ exports[`ToggleSwitch that is disabled 1`] = `
241241
}
242242
243243
.c1:hover {
244-
box-shadow: 0 0 0.01rem 0.01rem () => (0,_styledComponents.css)(["",""],(_ref5) => { var { theme;
244+
box-shadow: 0 0 0.01rem 0.01rem rgba(122,85,227,0.5);
245245
}
246246
247-
= _ref5; return (0,_rgba.default)(theme.colors.keyInteractive,0.5);});}
248-
249247
.c3 {
250248
font-family: 'Roboto','Noto Sans JP','Noto Sans CJK KR','Noto Sans Arabic UI','Noto Sans Devanagari UI','Noto Sans Hebrew','Noto Sans Thai UI','Helvetica','Arial',sans-serif;
251249
background: #C1C6CC;

0 commit comments

Comments
 (0)