Skip to content

Commit db807a0

Browse files
Luke BowermanLuke Bowerman
authored andcommitted
inverseOn => onInverse
1 parent 36b946d commit db807a0

File tree

8 files changed

+19
-19
lines changed

8 files changed

+19
-19
lines changed

packages/components/src/Text/text_variant.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export const textVariant = variant({
4949
color: 'text1',
5050
},
5151
inverted: {
52-
color: 'inverseOn',
52+
color: 'onInverse',
5353
},
5454
positive: {
5555
color: 'positive',

packages/components/src/Tooltip/Tooltip.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ export function useTooltip({
217217
backgroundColor="inverse"
218218
borderRadius="medium"
219219
boxShadow={3}
220-
color="inverseOn"
220+
color="onInverse"
221221
{...surfaceStyles}
222222
>
223223
<TooltipContent

packages/design-tokens/src/system/color/specifiable.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export interface SurfaceColors {
4242
* Used for: Icons in main nav, Text on primary buttons
4343
* @default white
4444
*/
45-
inverseOn: string
45+
onInverse: string
4646
}
4747

4848
export interface IntentColors {

packages/design-tokens/src/tokens/color/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const generateSurfaceColors = (coreColors: CoreColors): SurfaceColors => {
5151
return {
5252
field: coreColors.background,
5353
inverse: coreColors.text,
54-
inverseOn: coreColors.background,
54+
onInverse: coreColors.background,
5555
}
5656
}
5757

packages/www/src/documentation/components/content/avatar.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ Avatars allow the developer to specify a color to use. Default Colors:
9393
<AvatarIcon color="inform" />
9494
<AvatarUser color="positive" user={data} />
9595
<AvatarIcon color="positive" />
96-
<AvatarIcon color="inverseOn" bg="positive" />
96+
<AvatarIcon color="onInverse" bg="positive" />
9797
</Flex>
9898
)
9999
}
@@ -105,7 +105,7 @@ A combination of `AvatarUser` and `AvatarIcon`.
105105

106106
- `secondaryIcon` - icon used for secondary avatar. Default: `User`
107107
- `secondaryColor` - color to use for secondary avatar border & icon. Default: `key`
108-
- `secondaryBg` - color to use for secondary avatar background. Default: `inverseOn`
108+
- `secondaryBg` - color to use for secondary avatar background. Default: `onInverse`
109109

110110
```jsx
111111
;() => {
@@ -125,7 +125,7 @@ A combination of `AvatarUser` and `AvatarIcon`.
125125
user={noImageData}
126126
color="inform"
127127
secondaryBg="key"
128-
secondaryColor="inverseOn"
128+
secondaryColor="onInverse"
129129
secondaryIcon="User"
130130
/>
131131
</Flex>

packages/www/src/documentation/components/layout/box.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ Boxes provide a low-level customization interface which allows them to have diff
7575
display="inline-block"
7676
height="100px"
7777
bg="positive"
78-
color="inverseOn"
78+
color="onInverse"
7979
p="small"
8080
minWidth="200px"
8181
>
@@ -85,7 +85,7 @@ Boxes provide a low-level customization interface which allows them to have diff
8585
display="inline-block"
8686
height="50px"
8787
bg="inform"
88-
color="inverseOn"
88+
color="onInverse"
8989
ml="small"
9090
p="small"
9191
width="100px"
@@ -100,7 +100,7 @@ Boxes provide a low-level customization interface which allows them to have diff
100100
Boxes can reference colors from the theme object, pulling any color on the theme's `colors` property.
101101

102102
```jsx
103-
<Box bg="positive" color="inverseOn" p="medium">
103+
<Box bg="positive" color="onInverse" p="medium">
104104
My background is <Code>positive</Code>.
105105
</Box>
106106
```
@@ -111,7 +111,7 @@ Boxes can set positioning when needed.
111111

112112
```jsx
113113
<Box p="small" position="relative">
114-
<Box position="absolute" top="0" right="0" bg="negative" color="inverseOn">
114+
<Box position="absolute" top="0" right="0" bg="negative" color="onInverse">
115115
I'm absolutely positioned!
116116
</Box>
117117
</Box>

packages/www/src/documentation/components/layout/flex.mdx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ Using our `<Flex>` and `<FlexItem>` components we can quickly scaffold out real
4242
justifyContent="space-between"
4343
>
4444
<FlexItem mr="medium" pt="xsmall">
45-
<Icon name="Hamburger" color="inverseOn" size={24} />
45+
<Icon name="Hamburger" color="onInverse" size={24} />
4646
</FlexItem>
4747
<FlexItem>
48-
<Icon name="LookerLogo" color="inverseOn" size={60} />
48+
<Icon name="LookerLogo" color="onInverse" size={60} />
4949
</FlexItem>
5050
<FlexItem flex="1">
5151
<Flex justifyContent="center">
@@ -74,13 +74,13 @@ Using our `<Flex>` and `<FlexItem>` components we can quickly scaffold out real
7474
<FlexItem>
7575
<Flex>
7676
<FlexItem mr="small">
77-
<Icon name="Search" color="inverseOn" size={24} />
77+
<Icon name="Search" color="onInverse" size={24} />
7878
</FlexItem>
7979
<FlexItem mr="small">
80-
<Icon name="Chat" color="inverseOn" size={24} />
80+
<Icon name="Chat" color="onInverse" size={24} />
8181
</FlexItem>
8282
<FlexItem>
83-
<Icon name="Group" color="inverseOn" size={24} />
83+
<Icon name="Group" color="onInverse" size={24} />
8484
</FlexItem>
8585
</Flex>
8686
</FlexItem>
@@ -461,7 +461,7 @@ By default flex items are laid our in source order, the `order` property on a `<
461461
</Box>
462462
</FlexItem>
463463
<FlexItem>
464-
<Box m="small" p="large" bg="ui5" color="inverseOn">
464+
<Box m="small" p="large" bg="ui5" color="onInverse">
465465
3
466466
</Box>
467467
</FlexItem>
@@ -488,7 +488,7 @@ By default flex items are laid our in source order, the `order` property on a `<
488488
</Box>
489489
</FlexItem>
490490
<FlexItem>
491-
<Box m="small" p="large" bg="ui5" color="inverseOn">
491+
<Box m="small" p="large" bg="ui5" color="onInverse">
492492
3
493493
</Box>
494494
</FlexItem>

packages/www/src/documentation/system/demos/BorderRender.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ const borderData: BorderType[] = [
6363
color: 'text4',
6464
examples: ['inverse'],
6565
label: 'Border on Dark',
66-
textColor: 'inverseOn',
66+
textColor: 'onInverse',
6767
},
6868
]
6969

0 commit comments

Comments
 (0)