diff --git a/web/packages/design/src/Alert/Alert.jsx b/web/packages/design/src/Alert/Alert.jsx index de5d8197359f4..e5211b8e34caf 100644 --- a/web/packages/design/src/Alert/Alert.jsx +++ b/web/packages/design/src/Alert/Alert.jsx @@ -36,7 +36,7 @@ const kind = props => { }; case 'warning': return { - background: theme.colors.warning, + background: theme.colors.warning.main, color: theme.colors.text.contrast, }; case 'success': diff --git a/web/packages/design/src/Alert/Alert.test.js b/web/packages/design/src/Alert/Alert.test.js index e7a37237638ec..cf00034ef6a84 100644 --- a/web/packages/design/src/Alert/Alert.test.js +++ b/web/packages/design/src/Alert/Alert.test.js @@ -35,10 +35,10 @@ describe('design/Alert', () => { }); }); - test('"kind" warning renders bg == theme.colors.warning', () => { + test('"kind" warning renders bg == theme.colors.warning.main', () => { const { container } = render(); expect(container.firstChild).toHaveStyle({ - background: theme.colors.warning, + background: theme.colors.warning.main, }); }); diff --git a/web/packages/design/src/Button/Button.test.js b/web/packages/design/src/Button/Button.test.js index 1d2adf3331c8d..4ebffc4d49b7a 100644 --- a/web/packages/design/src/Button/Button.test.js +++ b/web/packages/design/src/Button/Button.test.js @@ -25,14 +25,14 @@ describe('design/Button', () => { const { container } = render( @@ -1401,7 +1401,7 @@ exports[`loaded state 1`] = ` display: inline-block; transition: color 0.3s; margin-left: 4px; - color: rgba(255,255,255,0.56); + color: rgba(255,255,255,0.72); font-size: 14px; } @@ -1740,7 +1740,7 @@ exports[`loaded state 1`] = ` } .c9::placeholder { - color: rgba(255,255,255,0.24); + color: rgba(255,255,255,0.54); font-size: 12px; } @@ -2201,7 +2201,7 @@ exports[`loaded state 1`] = ` LAUNCH @@ -2394,7 +2394,7 @@ exports[`readonly empty state 1`] = `
` background: ${props.theme.colors.dark}; - border: 2px solid ${props.theme.colors.brand.accent}; - color: ${props.theme.colors.text.primary}; + border: 2px solid ${props.theme.colors.brandAccent}; + color: ${props.theme.colors.text.main}; cursor: pointer; display: flex; align-items: center; diff --git a/web/packages/teleport/src/Audit/__snapshots__/Audit.story.test.tsx.snap b/web/packages/teleport/src/Audit/__snapshots__/Audit.story.test.tsx.snap index 76f765a7d5c77..bffc07a7a5a8c 100644 --- a/web/packages/teleport/src/Audit/__snapshots__/Audit.story.test.tsx.snap +++ b/web/packages/teleport/src/Audit/__snapshots__/Audit.story.test.tsx.snap @@ -284,7 +284,7 @@ exports[`list of all events 1`] = ` } .c2::placeholder { - color: rgba(255,255,255,0.24); + color: rgba(255,255,255,0.54); font-size: 12px; } @@ -7526,7 +7526,7 @@ exports[`loaded audit log screen 1`] = ` min-height: 34px; height: 34px; border-color: rgba(255,255,255,0.24); - color: rgba(255,255,255,0.56); + color: rgba(255,255,255,0.72); } .c3 .react-select__control:focus, @@ -7579,7 +7579,7 @@ exports[`loaded audit log screen 1`] = ` } .c3 .react-select__placeholder { - color: rgba(255,255,255,0.56); + color: rgba(255,255,255,0.72); } .c3 .react-select__option { @@ -7593,7 +7593,7 @@ exports[`loaded audit log screen 1`] = ` .c3 .react-select__multi-value { background-color: #111B48; - border: 1px solid rgba(255,255,255,0.24); + border: 1px solid rgba(255,255,255,0.54); } .c3 .react-select__multi-value__label { @@ -7604,7 +7604,7 @@ exports[`loaded audit log screen 1`] = ` .c3 .react-select--is-disabled .react-select__single-value, .c3 .react-select--is-disabled .react-select__placeholder, .c3 .react-select--is-disabled .react-select__indicator { - color: rgba(255,255,255,0.24); + color: rgba(255,255,255,0.54); } .c1 { @@ -7807,7 +7807,7 @@ exports[`loaded audit log screen 1`] = ` } .c7::placeholder { - color: rgba(255,255,255,0.24); + color: rgba(255,255,255,0.54); font-size: 12px; } diff --git a/web/packages/teleport/src/AuthConnectors/AuthConnectors.tsx b/web/packages/teleport/src/AuthConnectors/AuthConnectors.tsx index aa021c73370f9..a552991d66fd9 100644 --- a/web/packages/teleport/src/AuthConnectors/AuthConnectors.tsx +++ b/web/packages/teleport/src/AuthConnectors/AuthConnectors.tsx @@ -85,7 +85,7 @@ export function AuthConnectors(props: State) { diff --git a/web/packages/teleport/src/AuthConnectors/ConnectorList/ConnectorList.tsx b/web/packages/teleport/src/AuthConnectors/ConnectorList/ConnectorList.tsx index 3d53dfd35830e..832b41ed22695 100644 --- a/web/packages/teleport/src/AuthConnectors/ConnectorList/ConnectorList.tsx +++ b/web/packages/teleport/src/AuthConnectors/ConnectorList/ConnectorList.tsx @@ -84,7 +84,7 @@ function ConnectorListItem({ name, id, onEdit, onDelete }) { diff --git a/web/packages/teleport/src/Clusters/__snapshots__/Clusters.story.test.tsx.snap b/web/packages/teleport/src/Clusters/__snapshots__/Clusters.story.test.tsx.snap index 412ea4c315051..3957540523c6f 100644 --- a/web/packages/teleport/src/Clusters/__snapshots__/Clusters.story.test.tsx.snap +++ b/web/packages/teleport/src/Clusters/__snapshots__/Clusters.story.test.tsx.snap @@ -68,7 +68,7 @@ exports[`render clusters 1`] = ` transition: color 0.3s; margin-left: 8px; margin-right: -8px; - color: rgba(255,255,255,0.56); + color: rgba(255,255,255,0.72); font-size: 14px; } @@ -314,7 +314,7 @@ exports[`render clusters 1`] = ` } .c5::placeholder { - color: rgba(255,255,255,0.24); + color: rgba(255,255,255,0.54); font-size: 12px; } @@ -453,7 +453,7 @@ exports[`render clusters 1`] = ` OPTIONS @@ -477,7 +477,7 @@ exports[`render clusters 1`] = ` OPTIONS @@ -501,7 +501,7 @@ exports[`render clusters 1`] = ` OPTIONS @@ -525,7 +525,7 @@ exports[`render clusters 1`] = ` OPTIONS @@ -549,7 +549,7 @@ exports[`render clusters 1`] = ` OPTIONS @@ -573,7 +573,7 @@ exports[`render clusters 1`] = ` OPTIONS @@ -597,7 +597,7 @@ exports[`render clusters 1`] = ` OPTIONS @@ -621,7 +621,7 @@ exports[`render clusters 1`] = ` OPTIONS @@ -645,7 +645,7 @@ exports[`render clusters 1`] = ` OPTIONS @@ -669,7 +669,7 @@ exports[`render clusters 1`] = ` OPTIONS @@ -693,7 +693,7 @@ exports[`render clusters 1`] = ` OPTIONS @@ -717,7 +717,7 @@ exports[`render clusters 1`] = ` OPTIONS @@ -741,7 +741,7 @@ exports[`render clusters 1`] = ` OPTIONS @@ -765,7 +765,7 @@ exports[`render clusters 1`] = ` OPTIONS @@ -789,7 +789,7 @@ exports[`render clusters 1`] = ` OPTIONS @@ -813,7 +813,7 @@ exports[`render clusters 1`] = ` OPTIONS @@ -837,7 +837,7 @@ exports[`render clusters 1`] = ` OPTIONS @@ -861,7 +861,7 @@ exports[`render clusters 1`] = ` OPTIONS @@ -885,7 +885,7 @@ exports[`render clusters 1`] = ` OPTIONS @@ -909,7 +909,7 @@ exports[`render clusters 1`] = ` OPTIONS @@ -933,7 +933,7 @@ exports[`render clusters 1`] = ` OPTIONS @@ -957,7 +957,7 @@ exports[`render clusters 1`] = ` OPTIONS @@ -981,7 +981,7 @@ exports[`render clusters 1`] = ` OPTIONS @@ -1005,7 +1005,7 @@ exports[`render clusters 1`] = ` OPTIONS @@ -1029,7 +1029,7 @@ exports[`render clusters 1`] = ` OPTIONS @@ -1053,7 +1053,7 @@ exports[`render clusters 1`] = ` OPTIONS @@ -1077,7 +1077,7 @@ exports[`render clusters 1`] = ` OPTIONS @@ -1101,7 +1101,7 @@ exports[`render clusters 1`] = ` OPTIONS @@ -1125,7 +1125,7 @@ exports[`render clusters 1`] = ` OPTIONS @@ -1149,7 +1149,7 @@ exports[`render clusters 1`] = ` OPTIONS @@ -1173,7 +1173,7 @@ exports[`render clusters 1`] = ` OPTIONS @@ -1197,7 +1197,7 @@ exports[`render clusters 1`] = ` OPTIONS @@ -1221,7 +1221,7 @@ exports[`render clusters 1`] = ` OPTIONS @@ -1245,7 +1245,7 @@ exports[`render clusters 1`] = ` OPTIONS @@ -1269,7 +1269,7 @@ exports[`render clusters 1`] = ` OPTIONS @@ -1293,7 +1293,7 @@ exports[`render clusters 1`] = ` OPTIONS @@ -1317,7 +1317,7 @@ exports[`render clusters 1`] = ` OPTIONS diff --git a/web/packages/teleport/src/Console/DocumentNodes/__snapshots__/DocumentNodes.story.test.tsx.snap b/web/packages/teleport/src/Console/DocumentNodes/__snapshots__/DocumentNodes.story.test.tsx.snap index dd93c69587c1e..91684f14d3096 100644 --- a/web/packages/teleport/src/Console/DocumentNodes/__snapshots__/DocumentNodes.story.test.tsx.snap +++ b/web/packages/teleport/src/Console/DocumentNodes/__snapshots__/DocumentNodes.story.test.tsx.snap @@ -73,7 +73,7 @@ exports[`render DocumentNodes 1`] = ` transition: color 0.3s; margin-left: 8px; margin-right: -8px; - color: rgba(255,255,255,0.56); + color: rgba(255,255,255,0.72); font-size: 14px; } @@ -352,7 +352,7 @@ exports[`render DocumentNodes 1`] = ` } .c16::placeholder { - color: rgba(255,255,255,0.24); + color: rgba(255,255,255,0.54); font-size: 12px; } @@ -466,7 +466,7 @@ exports[`render DocumentNodes 1`] = ` .c10::placeholder { opacity: 1; - color: rgba(255,255,255,0.24); + color: rgba(255,255,255,0.54); font-size: 12px; } @@ -637,7 +637,7 @@ exports[`render DocumentNodes 1`] = ` min-height: 34px; height: 34px; border-color: rgba(255,255,255,0.24); - color: rgba(255,255,255,0.56); + color: rgba(255,255,255,0.72); } .c6 .react-select__control:focus, @@ -690,7 +690,7 @@ exports[`render DocumentNodes 1`] = ` } .c6 .react-select__placeholder { - color: rgba(255,255,255,0.56); + color: rgba(255,255,255,0.72); } .c6 .react-select__option { @@ -704,7 +704,7 @@ exports[`render DocumentNodes 1`] = ` .c6 .react-select__multi-value { background-color: #01172C; - border: 1px solid rgba(255,255,255,0.24); + border: 1px solid rgba(255,255,255,0.54); } .c6 .react-select__multi-value__label { @@ -715,7 +715,7 @@ exports[`render DocumentNodes 1`] = ` .c6 .react-select--is-disabled .react-select__single-value, .c6 .react-select--is-disabled .react-select__placeholder, .c6 .react-select--is-disabled .react-select__indicator { - color: rgba(255,255,255,0.24); + color: rgba(255,255,255,0.54); } .c6 .react-select-container { @@ -857,7 +857,7 @@ exports[`render DocumentNodes 1`] = `
@@ -1013,7 +1013,7 @@ exports[`render DocumentNodes 1`] = ` CONNECT @@ -1055,7 +1055,7 @@ exports[`render DocumentNodes 1`] = ` CONNECT @@ -1102,7 +1102,7 @@ exports[`render DocumentNodes 1`] = ` CONNECT @@ -1149,7 +1149,7 @@ exports[`render DocumentNodes 1`] = ` CONNECT @@ -1215,7 +1215,7 @@ exports[`render DocumentNodes 1`] = ` CONNECT diff --git a/web/packages/teleport/src/Console/Tabs/JoinedUsers/JoinedUsers.jsx b/web/packages/teleport/src/Console/Tabs/JoinedUsers/JoinedUsers.jsx index 4b21d4f44a2a6..5838a7a042fe8 100644 --- a/web/packages/teleport/src/Console/Tabs/JoinedUsers/JoinedUsers.jsx +++ b/web/packages/teleport/src/Console/Tabs/JoinedUsers/JoinedUsers.jsx @@ -104,11 +104,11 @@ const StyledUsers = styled.div` justify-content: center; margin-right: 3px; background-color: ${props => - props.active ? theme.colors.brand.accent : theme.colors.grey[900]}; + props.active ? theme.colors.brandAccent : theme.colors.grey[900]}; `; const StyledAvatar = styled.div` - background: ${props => props.theme.colors.brand.accent}; + background: ${props => props.theme.colors.brandAccent}; color: ${props => props.theme.colors.light}; border-radius: 50%; display: flex; diff --git a/web/packages/teleport/src/Console/Tabs/Tabs.tsx b/web/packages/teleport/src/Console/Tabs/Tabs.tsx index 33071aaef0cb3..d10a183a49a13 100644 --- a/web/packages/teleport/src/Console/Tabs/Tabs.tsx +++ b/web/packages/teleport/src/Console/Tabs/Tabs.tsx @@ -79,7 +79,7 @@ export function Tabs(props: Props & { parties: stores.Parties }) { diff --git a/web/packages/teleport/src/Console/Tabs/__snapshots__/Tabs.story.test.tsx.snap b/web/packages/teleport/src/Console/Tabs/__snapshots__/Tabs.story.test.tsx.snap index e82f60faf72a8..babbfc5c7745a 100644 --- a/web/packages/teleport/src/Console/Tabs/__snapshots__/Tabs.story.test.tsx.snap +++ b/web/packages/teleport/src/Console/Tabs/__snapshots__/Tabs.story.test.tsx.snap @@ -146,7 +146,7 @@ exports[`render ConsoleTabs 1`] = ` box-sizing: border-box; height: 32px; width: 100%; - color: rgba(255,255,255,0.56); + color: rgba(255,255,255,0.72); background: #01172C; min-height: 32px; border-radius: 4px; @@ -168,7 +168,7 @@ exports[`render ConsoleTabs 1`] = ` >