diff --git a/e b/e index 759991106420c..96f898e3ed737 160000 --- a/e +++ b/e @@ -1 +1 @@ -Subproject commit 759991106420cf1df6e62031456378f54bb0c263 +Subproject commit 96f898e3ed7379a64a7ec5c343d5c8e690abfa2b diff --git a/web/packages/design/src/DataTable/Pager/StyledPager.tsx b/web/packages/design/src/DataTable/Pager/StyledPager.tsx index cdfb388521fc2..3147a552e2abc 100644 --- a/web/packages/design/src/DataTable/Pager/StyledPager.tsx +++ b/web/packages/design/src/DataTable/Pager/StyledPager.tsx @@ -16,31 +16,16 @@ import styled from 'styled-components'; +import { ButtonIcon } from 'design'; import Icon from 'design/Icon'; -export const StyledArrowBtn = styled.button` - background: none; - border: none; - cursor: pointer; - +export const StyledArrowBtn = styled(ButtonIcon)` ${Icon} { font-size: 20px; - transition: all 0.3s; - opacity: 0.5; } - - &:hover, - &:focus { - ${Icon} { - opacity: 1; - } - } - - &:disabled { - cursor: default; - ${Icon} { - opacity: 0.1; - } + ${Icon}:before { + // arrow icons have some padding that makes them look slightly off-center, padding compensates it + padding-left: 1px; } `; diff --git a/web/packages/design/src/DataTable/StyledTable.tsx b/web/packages/design/src/DataTable/StyledTable.tsx index f058d2b2f7e29..0b73cf358528a 100644 --- a/web/packages/design/src/DataTable/StyledTable.tsx +++ b/web/packages/design/src/DataTable/StyledTable.tsx @@ -23,7 +23,6 @@ import Icon from '../Icon'; export const StyledTable = styled.table( props => ` background: ${props.theme.colors.levels.surface}; - border-collapse: collapse; border-spacing: 0; font-size: 12px; width: 100%; @@ -74,7 +73,10 @@ export const StyledTable = styled.table( line-height: 16px; } - tbody tr { + // When border-collapse: collapse is set on a table element, Safari incorrectly renders the row border with alpha channel. + // It looks like the collapsed border was rendered twice, that is, opacity 0.07 looks like opacity 0.14. + // A workaround is to not use collapse and apply border to td elements. + & > tbody > tr:not(:last-of-type) > td { border-bottom: 1px solid ${props.theme.colors.spotBackground[0]}; } @@ -87,7 +89,7 @@ export const StyledTable = styled.table( borderRadius ); -export const StyledPanel = styled.nav` +export const StyledPanel = styled.nav<{ showTopBorder: boolean }>` padding: 16px 24px; display: flex; height: 24px; @@ -96,6 +98,10 @@ export const StyledPanel = styled.nav` justify-content: space-between; background: ${props => props.theme.colors.levels.surface}; ${borderRadius} + border-top: ${props => + props.showTopBorder + ? '1px solid ' + props.theme.colors.spotBackground[0] + : undefined} `; export const StyledTableWrapper = styled.div` diff --git a/web/packages/design/src/DataTable/Table.tsx b/web/packages/design/src/DataTable/Table.tsx index ac405daf609f0..458905a4f1522 100644 --- a/web/packages/design/src/DataTable/Table.tsx +++ b/web/packages/design/src/DataTable/Table.tsx @@ -287,7 +287,11 @@ function PagedTable({ {renderBody(paginatedData[currentPage])} {!isTopPager && ( - + ({ {renderHeaders()} {renderBody(data)} - + diff --git a/web/packages/shared/components/Search/SearchPagination.tsx b/web/packages/shared/components/Search/SearchPagination.tsx index 58b4b433f889a..a7bb2bd73db8b 100644 --- a/web/packages/shared/components/Search/SearchPagination.tsx +++ b/web/packages/shared/components/Search/SearchPagination.tsx @@ -22,7 +22,11 @@ import { CircleArrowLeft, CircleArrowRight } from 'design/Icon'; export function SearchPagination({ prevPage, nextPage }: Props) { return ( - + diff --git a/web/packages/teleport/src/Account/ManageDevices/__snapshots__/ManageDevices.story.test.tsx.snap b/web/packages/teleport/src/Account/ManageDevices/__snapshots__/ManageDevices.story.test.tsx.snap index c0422d6727b5a..7b69e761eab5b 100644 --- a/web/packages/teleport/src/Account/ManageDevices/__snapshots__/ManageDevices.story.test.tsx.snap +++ b/web/packages/teleport/src/Account/ManageDevices/__snapshots__/ManageDevices.story.test.tsx.snap @@ -140,7 +140,6 @@ exports[`render device dashboard 1`] = ` .c11 { background: #222C59; - border-collapse: collapse; border-spacing: 0; font-size: 12px; width: 100%; @@ -205,7 +204,7 @@ exports[`render device dashboard 1`] = ` line-height: 16px; } -.c11 tbody tr { +.c11 > tbody > tr:not(:last-of-type) > td { border-bottom: 1px solid rgba(255,255,255,0.07); } @@ -683,7 +682,6 @@ exports[`render failed state for creating restricted privilege token 1`] = ` .c12 { background: #222C59; - border-collapse: collapse; border-spacing: 0; font-size: 12px; width: 100%; @@ -748,7 +746,7 @@ exports[`render failed state for creating restricted privilege token 1`] = ` line-height: 16px; } -.c12 tbody tr { +.c12 > tbody > tr:not(:last-of-type) > td { border-bottom: 1px solid rgba(255,255,255,0.07); } diff --git a/web/packages/teleport/src/Apps/__snapshots__/Apps.story.test.tsx.snap b/web/packages/teleport/src/Apps/__snapshots__/Apps.story.test.tsx.snap index e9540eff44e56..da073b1963d87 100644 --- a/web/packages/teleport/src/Apps/__snapshots__/Apps.story.test.tsx.snap +++ b/web/packages/teleport/src/Apps/__snapshots__/Apps.story.test.tsx.snap @@ -363,13 +363,100 @@ exports[`failed state 1`] = ` font-size: 14px; } -.c39 { +.c40 { display: inline-block; transition: color 0.3s; color: #FFFFFF; font-size: 16px; } +.c38 { + align-items: center; + border: none; + cursor: pointer; + display: flex; + outline: none; + border-radius: 50%; + overflow: visible; + justify-content: center; + text-align: center; + flex: 0 0 auto; + background: transparent; + color: inherit; + transition: all 0.3s; + -webkit-font-smoothing: antialiased; + font-size: 16px; + height: 32px; + width: 32px; + margin-left: 0px; + margin-right: 0px; +} + +.c38 .c20 { + color: inherit; +} + +.c38:disabled { + color: rgba(255,255,255,0.36); +} + +.c38:disabled { + color: rgba(255,255,255,0.36); + cursor: default; +} + +.c38:hover:enabled, +.c38:focus:enabled { + background: rgba(255,255,255,0.13); +} + +.c38:active:enabled { + background: rgba(255,255,255,0.18); +} + +.c41 { + align-items: center; + border: none; + cursor: pointer; + display: flex; + outline: none; + border-radius: 50%; + overflow: visible; + justify-content: center; + text-align: center; + flex: 0 0 auto; + background: transparent; + color: inherit; + transition: all 0.3s; + -webkit-font-smoothing: antialiased; + font-size: 16px; + height: 32px; + width: 32px; + margin-left: 0px; +} + +.c41 .c20 { + color: inherit; +} + +.c41:disabled { + color: rgba(255,255,255,0.36); +} + +.c41:disabled { + color: rgba(255,255,255,0.36); + cursor: default; +} + +.c41:hover:enabled, +.c41:focus:enabled { + background: rgba(255,255,255,0.13); +} + +.c41:active:enabled { + background: rgba(255,255,255,0.18); +} + .c19 { overflow: hidden; text-overflow: ellipsis; @@ -518,7 +605,6 @@ exports[`failed state 1`] = ` .c24 { background: #222C59; - border-collapse: collapse; border-spacing: 0; font-size: 12px; width: 100%; @@ -581,7 +667,7 @@ exports[`failed state 1`] = ` line-height: 16px; } -.c24 tbody tr { +.c24 > tbody > tr:not(:last-of-type) > td { border-bottom: 1px solid rgba(255,255,255,0.07); } @@ -609,6 +695,7 @@ exports[`failed state 1`] = ` align-items: center; justify-content: space-between; background: #222C59; + border-top: 1px solid rgba(255,255,255,0.07); } .c4 { @@ -637,29 +724,12 @@ exports[`failed state 1`] = ` background-color: rgba(255,255,255,0.13); } -.c38 { - background: none; - border: none; - cursor: pointer; -} - -.c38 .c20 { +.c39 .c20 { font-size: 20px; - transition: all 0.3s; - opacity: 0.5; -} - -.c38:hover .c20, -.c38:focus .c20 { - opacity: 1; -} - -.c38:disabled { - cursor: default; } -.c38:disabled .c20 { - opacity: 0.1; +.c39 .c20:before { + padding-left: 1px; } .c13 { @@ -1267,20 +1337,20 @@ exports[`failed state 1`] = ` class="c22" > @@ -1406,13 +1476,100 @@ exports[`loaded state 1`] = ` font-size: 14px; } -.c39 { +.c40 { display: inline-block; transition: color 0.3s; color: #FFFFFF; font-size: 16px; } +.c38 { + align-items: center; + border: none; + cursor: pointer; + display: flex; + outline: none; + border-radius: 50%; + overflow: visible; + justify-content: center; + text-align: center; + flex: 0 0 auto; + background: transparent; + color: inherit; + transition: all 0.3s; + -webkit-font-smoothing: antialiased; + font-size: 16px; + height: 32px; + width: 32px; + margin-left: 0px; + margin-right: 0px; +} + +.c38 .c20 { + color: inherit; +} + +.c38:disabled { + color: rgba(255,255,255,0.36); +} + +.c38:disabled { + color: rgba(255,255,255,0.36); + cursor: default; +} + +.c38:hover:enabled, +.c38:focus:enabled { + background: rgba(255,255,255,0.13); +} + +.c38:active:enabled { + background: rgba(255,255,255,0.18); +} + +.c41 { + align-items: center; + border: none; + cursor: pointer; + display: flex; + outline: none; + border-radius: 50%; + overflow: visible; + justify-content: center; + text-align: center; + flex: 0 0 auto; + background: transparent; + color: inherit; + transition: all 0.3s; + -webkit-font-smoothing: antialiased; + font-size: 16px; + height: 32px; + width: 32px; + margin-left: 0px; +} + +.c41 .c20 { + color: inherit; +} + +.c41:disabled { + color: rgba(255,255,255,0.36); +} + +.c41:disabled { + color: rgba(255,255,255,0.36); + cursor: default; +} + +.c41:hover:enabled, +.c41:focus:enabled { + background: rgba(255,255,255,0.13); +} + +.c41:active:enabled { + background: rgba(255,255,255,0.18); +} + .c19 { overflow: hidden; text-overflow: ellipsis; @@ -1561,7 +1718,6 @@ exports[`loaded state 1`] = ` .c24 { background: #222C59; - border-collapse: collapse; border-spacing: 0; font-size: 12px; width: 100%; @@ -1624,7 +1780,7 @@ exports[`loaded state 1`] = ` line-height: 16px; } -.c24 tbody tr { +.c24 > tbody > tr:not(:last-of-type) > td { border-bottom: 1px solid rgba(255,255,255,0.07); } @@ -1652,6 +1808,7 @@ exports[`loaded state 1`] = ` align-items: center; justify-content: space-between; background: #222C59; + border-top: 1px solid rgba(255,255,255,0.07); } .c4 { @@ -1680,29 +1837,12 @@ exports[`loaded state 1`] = ` background-color: rgba(255,255,255,0.13); } -.c38 { - background: none; - border: none; - cursor: pointer; -} - -.c38 .c20 { +.c39 .c20 { font-size: 20px; - transition: all 0.3s; - opacity: 0.5; -} - -.c38:hover .c20, -.c38:focus .c20 { - opacity: 1; -} - -.c38:disabled { - cursor: default; } -.c38:disabled .c20 { - opacity: 0.1; +.c39 .c20:before { + padding-left: 1px; } .c13 { @@ -2316,20 +2456,20 @@ exports[`loaded state 1`] = ` class="c22" > 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 07399b86257cf..ad9ed973a455a 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 @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`list of all events 1`] = ` -.c19 { +.c21 { line-height: 1.5; margin: 0; display: inline-flex; @@ -29,35 +29,35 @@ exports[`list of all events 1`] = ` width: 87px; } -.c19:hover, -.c19:focus { +.c21:hover, +.c21:focus { background: rgba(255,255,255,0.07); } -.c19:active { +.c21:active { background: rgba(255,255,255,0.13); } -.c19:disabled { +.c21:disabled { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.3); cursor: auto; } -.c14 { +.c15 { display: inline-block; transition: color 0.3s; color: #FFFFFF; font-size: 16px; } -.c16 { +.c18 { display: inline-block; transition: color 0.3s; color: #FFFFFF; } -.c18 { +.c20 { display: inline-block; transition: color 0.3s; color: #FFFFFF; @@ -66,6 +66,93 @@ exports[`list of all events 1`] = ` font-size: 16px; } +.c12 { + align-items: center; + border: none; + cursor: pointer; + display: flex; + outline: none; + border-radius: 50%; + overflow: visible; + justify-content: center; + text-align: center; + flex: 0 0 auto; + background: transparent; + color: inherit; + transition: all 0.3s; + -webkit-font-smoothing: antialiased; + font-size: 16px; + height: 32px; + width: 32px; + margin-left: 0px; + margin-right: 0px; +} + +.c12 .c14 { + color: inherit; +} + +.c12:disabled { + color: rgba(255,255,255,0.36); +} + +.c12:disabled { + color: rgba(255,255,255,0.36); + cursor: default; +} + +.c12:hover:enabled, +.c12:focus:enabled { + background: rgba(255,255,255,0.13); +} + +.c12:active:enabled { + background: rgba(255,255,255,0.18); +} + +.c16 { + align-items: center; + border: none; + cursor: pointer; + display: flex; + outline: none; + border-radius: 50%; + overflow: visible; + justify-content: center; + text-align: center; + flex: 0 0 auto; + background: transparent; + color: inherit; + transition: all 0.3s; + -webkit-font-smoothing: antialiased; + font-size: 16px; + height: 32px; + width: 32px; + margin-left: 0px; +} + +.c16 .c14 { + color: inherit; +} + +.c16:disabled { + color: rgba(255,255,255,0.36); +} + +.c16:disabled { + color: rgba(255,255,255,0.36); + cursor: default; +} + +.c16:hover:enabled, +.c16:focus:enabled { + background: rgba(255,255,255,0.13); +} + +.c16:active:enabled { + background: rgba(255,255,255,0.18); +} + .c9 { overflow: hidden; text-overflow: ellipsis; @@ -96,9 +183,8 @@ exports[`list of all events 1`] = ` display: flex; } -.c15 { +.c17 { background: #222C59; - border-collapse: collapse; border-spacing: 0; font-size: 12px; width: 100%; @@ -108,39 +194,39 @@ exports[`list of all events 1`] = ` border-bottom-left-radius: 8px; } -.c15 > thead > tr > th, -.c15 > tbody > tr > th, -.c15 > tfoot > tr > th, -.c15 > thead > tr > td, -.c15 > tbody > tr > td, -.c15 > tfoot > tr > td { +.c17 > thead > tr > th, +.c17 > tbody > tr > th, +.c17 > tfoot > tr > th, +.c17 > thead > tr > td, +.c17 > tbody > tr > td, +.c17 > tfoot > tr > td { padding: 8px 8px; vertical-align: middle; } -.c15 > thead > tr > th:first-child, -.c15 > tbody > tr > th:first-child, -.c15 > tfoot > tr > th:first-child, -.c15 > thead > tr > td:first-child, -.c15 > tbody > tr > td:first-child, -.c15 > tfoot > tr > td:first-child { +.c17 > thead > tr > th:first-child, +.c17 > tbody > tr > th:first-child, +.c17 > tfoot > tr > th:first-child, +.c17 > thead > tr > td:first-child, +.c17 > tbody > tr > td:first-child, +.c17 > tfoot > tr > td:first-child { padding-left: 24px; } -.c15 > thead > tr > th:last-child, -.c15 > tbody > tr > th:last-child, -.c15 > tfoot > tr > th:last-child, -.c15 > thead > tr > td:last-child, -.c15 > tbody > tr > td:last-child, -.c15 > tfoot > tr > td:last-child { +.c17 > thead > tr > th:last-child, +.c17 > tbody > tr > th:last-child, +.c17 > tfoot > tr > th:last-child, +.c17 > thead > tr > td:last-child, +.c17 > tbody > tr > td:last-child, +.c17 > tfoot > tr > td:last-child { padding-right: 24px; } -.c15 > tbody > tr > td { +.c17 > tbody > tr > td { vertical-align: middle; } -.c15 > thead > tr > th { +.c17 > thead > tr > th { background: rgba(255,255,255,0.07); color: #FFFFFF; cursor: pointer; @@ -154,22 +240,22 @@ exports[`list of all events 1`] = ` white-space: nowrap; } -.c15 > thead > tr > th .c13 { +.c17 > thead > tr > th .c14 { font-weight: bold; font-size: 8px; margin-left: 8px; } -.c15 > tbody > tr > td { +.c17 > tbody > tr > td { color: #FFFFFF; line-height: 16px; } -.c15 tbody tr { +.c17 > tbody > tr:not(:last-of-type) > td { border-bottom: 1px solid rgba(255,255,255,0.07); } -.c15 tbody tr:hover { +.c17 tbody tr:hover { background-color: rgba(255,255,255,0.07); } @@ -189,29 +275,12 @@ exports[`list of all events 1`] = ` border-radius: 8px; } -.c12 { - background: none; - border: none; - cursor: pointer; -} - -.c12 .c13 { +.c13 .c14 { font-size: 20px; - transition: all 0.3s; - opacity: 0.5; } -.c12:hover .c13, -.c12:focus .c13 { - opacity: 1; -} - -.c12:disabled { - cursor: default; -} - -.c12:disabled .c13 { - opacity: 0.1; +.c13 .c14:before { + padding-left: 1px; } .c10 { @@ -302,7 +371,7 @@ exports[`list of all events 1`] = ` font-size: 12px; } -.c20 { +.c22 { background: #000000; border: 2px solid #9F85FF; color: rgba(255,255,255,0.72); @@ -317,19 +386,19 @@ exports[`list of all events 1`] = ` transition: all 0.3s; } -.c20:hover, -.c20:active, -.c20:focus { +.c22:hover, +.c22:active, +.c22:focus { background: #0C143D; color: #FFFFFF; } -.c20:active { +.c22:active { box-shadow: none; opacity: 0.56; } -.c17 { +.c19 { display: flex; align-items: center; min-width: 130px; @@ -402,22 +471,22 @@ exports[`list of all events 1`] = ` class="c11" > @@ -425,7 +494,7 @@ exports[`list of all events 1`] = ` @@ -433,7 +502,7 @@ exports[`list of all events 1`] = ` Type @@ -447,7 +516,7 @@ exports[`list of all events 1`] = ` Created (UTC) @@ -463,10 +532,10 @@ exports[`list of all events 1`] = ` style="vertical-align: inherit;" >
OpenSearch Request Failed @@ -486,7 +555,7 @@ exports[`list of all events 1`] = ` align="right" > @@ -7633,7 +7771,7 @@ exports[`loaded audit log screen 1`] = `
@@ -7641,7 +7779,7 @@ exports[`loaded audit log screen 1`] = ` Type @@ -7655,7 +7793,7 @@ exports[`loaded audit log screen 1`] = ` Created (UTC) @@ -7671,10 +7809,10 @@ exports[`loaded audit log screen 1`] = ` style="vertical-align: inherit;" >
User Updated @@ -7694,7 +7832,7 @@ exports[`loaded audit log screen 1`] = ` align="right" > @@ -429,7 +498,7 @@ exports[`render clusters 1`] = `
@@ -440,7 +509,7 @@ exports[`render clusters 1`] = ` Name @@ -456,7 +525,7 @@ exports[`render clusters 1`] = ` style="width: 40px;" >
ROOT @@ -469,13 +538,13 @@ exports[`render clusters 1`] = ` align="right" >
- ⟵ tunnel + ← tunnel @@ -1047,10 +1117,10 @@ exports[`render DocumentNodes 1`] = ` - ⟵ tunnel + ← tunnel @@ -1167,22 +1237,22 @@ exports[`render DocumentNodes 1`] = ` class="c28" > diff --git a/web/packages/teleport/src/Databases/__snapshots__/Databases.story.test.tsx.snap b/web/packages/teleport/src/Databases/__snapshots__/Databases.story.test.tsx.snap index 4969e8fa925aa..05023e17a7e66 100644 --- a/web/packages/teleport/src/Databases/__snapshots__/Databases.story.test.tsx.snap +++ b/web/packages/teleport/src/Databases/__snapshots__/Databases.story.test.tsx.snap @@ -346,13 +346,100 @@ exports[`failed 1`] = ` color: #FFFFFF; } -.c31 { +.c32 { display: inline-block; transition: color 0.3s; color: #FFFFFF; font-size: 16px; } +.c30 { + align-items: center; + border: none; + cursor: pointer; + display: flex; + outline: none; + border-radius: 50%; + overflow: visible; + justify-content: center; + text-align: center; + flex: 0 0 auto; + background: transparent; + color: inherit; + transition: all 0.3s; + -webkit-font-smoothing: antialiased; + font-size: 16px; + height: 32px; + width: 32px; + margin-left: 0px; + margin-right: 0px; +} + +.c30 .c20 { + color: inherit; +} + +.c30:disabled { + color: rgba(255,255,255,0.36); +} + +.c30:disabled { + color: rgba(255,255,255,0.36); + cursor: default; +} + +.c30:hover:enabled, +.c30:focus:enabled { + background: rgba(255,255,255,0.13); +} + +.c30:active:enabled { + background: rgba(255,255,255,0.18); +} + +.c33 { + align-items: center; + border: none; + cursor: pointer; + display: flex; + outline: none; + border-radius: 50%; + overflow: visible; + justify-content: center; + text-align: center; + flex: 0 0 auto; + background: transparent; + color: inherit; + transition: all 0.3s; + -webkit-font-smoothing: antialiased; + font-size: 16px; + height: 32px; + width: 32px; + margin-left: 0px; +} + +.c33 .c20 { + color: inherit; +} + +.c33:disabled { + color: rgba(255,255,255,0.36); +} + +.c33:disabled { + color: rgba(255,255,255,0.36); + cursor: default; +} + +.c33:hover:enabled, +.c33:focus:enabled { + background: rgba(255,255,255,0.13); +} + +.c33:active:enabled { + background: rgba(255,255,255,0.18); +} + .c19 { overflow: hidden; text-overflow: ellipsis; @@ -447,7 +534,6 @@ exports[`failed 1`] = ` .c24 { background: #222C59; - border-collapse: collapse; border-spacing: 0; font-size: 12px; width: 100%; @@ -510,7 +596,7 @@ exports[`failed 1`] = ` line-height: 16px; } -.c24 tbody tr { +.c24 > tbody > tr:not(:last-of-type) > td { border-bottom: 1px solid rgba(255,255,255,0.07); } @@ -538,6 +624,7 @@ exports[`failed 1`] = ` align-items: center; justify-content: space-between; background: #222C59; + border-top: 1px solid rgba(255,255,255,0.07); } .c4 { @@ -566,29 +653,12 @@ exports[`failed 1`] = ` background-color: rgba(255,255,255,0.13); } -.c30 { - background: none; - border: none; - cursor: pointer; -} - -.c30 .c20 { +.c31 .c20 { font-size: 20px; - transition: all 0.3s; - opacity: 0.5; -} - -.c30:hover .c20, -.c30:focus .c20 { - opacity: 1; -} - -.c30:disabled { - cursor: default; } -.c30:disabled .c20 { - opacity: 0.1; +.c31 .c20:before { + padding-left: 1px; } .c13 { @@ -1006,20 +1076,20 @@ exports[`failed 1`] = ` class="c22" > @@ -1127,13 +1197,100 @@ exports[`open source loaded 1`] = ` color: #FFFFFF; } -.c31 { +.c32 { display: inline-block; transition: color 0.3s; color: #FFFFFF; font-size: 16px; } +.c30 { + align-items: center; + border: none; + cursor: pointer; + display: flex; + outline: none; + border-radius: 50%; + overflow: visible; + justify-content: center; + text-align: center; + flex: 0 0 auto; + background: transparent; + color: inherit; + transition: all 0.3s; + -webkit-font-smoothing: antialiased; + font-size: 16px; + height: 32px; + width: 32px; + margin-left: 0px; + margin-right: 0px; +} + +.c30 .c20 { + color: inherit; +} + +.c30:disabled { + color: rgba(255,255,255,0.36); +} + +.c30:disabled { + color: rgba(255,255,255,0.36); + cursor: default; +} + +.c30:hover:enabled, +.c30:focus:enabled { + background: rgba(255,255,255,0.13); +} + +.c30:active:enabled { + background: rgba(255,255,255,0.18); +} + +.c33 { + align-items: center; + border: none; + cursor: pointer; + display: flex; + outline: none; + border-radius: 50%; + overflow: visible; + justify-content: center; + text-align: center; + flex: 0 0 auto; + background: transparent; + color: inherit; + transition: all 0.3s; + -webkit-font-smoothing: antialiased; + font-size: 16px; + height: 32px; + width: 32px; + margin-left: 0px; +} + +.c33 .c20 { + color: inherit; +} + +.c33:disabled { + color: rgba(255,255,255,0.36); +} + +.c33:disabled { + color: rgba(255,255,255,0.36); + cursor: default; +} + +.c33:hover:enabled, +.c33:focus:enabled { + background: rgba(255,255,255,0.13); +} + +.c33:active:enabled { + background: rgba(255,255,255,0.18); +} + .c19 { overflow: hidden; text-overflow: ellipsis; @@ -1228,7 +1385,6 @@ exports[`open source loaded 1`] = ` .c24 { background: #222C59; - border-collapse: collapse; border-spacing: 0; font-size: 12px; width: 100%; @@ -1291,7 +1447,7 @@ exports[`open source loaded 1`] = ` line-height: 16px; } -.c24 tbody tr { +.c24 > tbody > tr:not(:last-of-type) > td { border-bottom: 1px solid rgba(255,255,255,0.07); } @@ -1319,6 +1475,7 @@ exports[`open source loaded 1`] = ` align-items: center; justify-content: space-between; background: #222C59; + border-top: 1px solid rgba(255,255,255,0.07); } .c4 { @@ -1347,29 +1504,12 @@ exports[`open source loaded 1`] = ` background-color: rgba(255,255,255,0.13); } -.c30 { - background: none; - border: none; - cursor: pointer; -} - -.c30 .c20 { +.c31 .c20 { font-size: 20px; - transition: all 0.3s; - opacity: 0.5; -} - -.c30:hover .c20, -.c30:focus .c20 { - opacity: 1; -} - -.c30:disabled { - cursor: default; } -.c30:disabled .c20 { - opacity: 0.1; +.c31 .c20:before { + padding-left: 1px; } .c13 { @@ -1793,20 +1933,20 @@ exports[`open source loaded 1`] = ` class="c22" > diff --git a/web/packages/teleport/src/Kubes/__snapshots__/Kubes.story.test.tsx.snap b/web/packages/teleport/src/Kubes/__snapshots__/Kubes.story.test.tsx.snap index e208f2c8ec3d9..ee3904ec5194c 100644 --- a/web/packages/teleport/src/Kubes/__snapshots__/Kubes.story.test.tsx.snap +++ b/web/packages/teleport/src/Kubes/__snapshots__/Kubes.story.test.tsx.snap @@ -346,13 +346,100 @@ exports[`failed 1`] = ` color: #FFFFFF; } -.c31 { +.c32 { display: inline-block; transition: color 0.3s; color: #FFFFFF; font-size: 16px; } +.c30 { + align-items: center; + border: none; + cursor: pointer; + display: flex; + outline: none; + border-radius: 50%; + overflow: visible; + justify-content: center; + text-align: center; + flex: 0 0 auto; + background: transparent; + color: inherit; + transition: all 0.3s; + -webkit-font-smoothing: antialiased; + font-size: 16px; + height: 32px; + width: 32px; + margin-left: 0px; + margin-right: 0px; +} + +.c30 .c20 { + color: inherit; +} + +.c30:disabled { + color: rgba(255,255,255,0.36); +} + +.c30:disabled { + color: rgba(255,255,255,0.36); + cursor: default; +} + +.c30:hover:enabled, +.c30:focus:enabled { + background: rgba(255,255,255,0.13); +} + +.c30:active:enabled { + background: rgba(255,255,255,0.18); +} + +.c33 { + align-items: center; + border: none; + cursor: pointer; + display: flex; + outline: none; + border-radius: 50%; + overflow: visible; + justify-content: center; + text-align: center; + flex: 0 0 auto; + background: transparent; + color: inherit; + transition: all 0.3s; + -webkit-font-smoothing: antialiased; + font-size: 16px; + height: 32px; + width: 32px; + margin-left: 0px; +} + +.c33 .c20 { + color: inherit; +} + +.c33:disabled { + color: rgba(255,255,255,0.36); +} + +.c33:disabled { + color: rgba(255,255,255,0.36); + cursor: default; +} + +.c33:hover:enabled, +.c33:focus:enabled { + background: rgba(255,255,255,0.13); +} + +.c33:active:enabled { + background: rgba(255,255,255,0.18); +} + .c19 { overflow: hidden; text-overflow: ellipsis; @@ -407,7 +494,6 @@ exports[`failed 1`] = ` .c24 { background: #222C59; - border-collapse: collapse; border-spacing: 0; font-size: 12px; width: 100%; @@ -470,7 +556,7 @@ exports[`failed 1`] = ` line-height: 16px; } -.c24 tbody tr { +.c24 > tbody > tr:not(:last-of-type) > td { border-bottom: 1px solid rgba(255,255,255,0.07); } @@ -498,6 +584,7 @@ exports[`failed 1`] = ` align-items: center; justify-content: space-between; background: #222C59; + border-top: 1px solid rgba(255,255,255,0.07); } .c4 { @@ -526,29 +613,12 @@ exports[`failed 1`] = ` background-color: rgba(255,255,255,0.13); } -.c30 { - background: none; - border: none; - cursor: pointer; -} - -.c30 .c20 { +.c31 .c20 { font-size: 20px; - transition: all 0.3s; - opacity: 0.5; -} - -.c30:hover .c20, -.c30:focus .c20 { - opacity: 1; -} - -.c30:disabled { - cursor: default; } -.c30:disabled .c20 { - opacity: 0.1; +.c31 .c20:before { + padding-left: 1px; } .c13 { @@ -964,20 +1034,20 @@ exports[`failed 1`] = ` class="c22" > @@ -1086,13 +1156,100 @@ exports[`loaded 1`] = ` color: #FFFFFF; } -.c31 { +.c32 { display: inline-block; transition: color 0.3s; color: #FFFFFF; font-size: 16px; } +.c30 { + align-items: center; + border: none; + cursor: pointer; + display: flex; + outline: none; + border-radius: 50%; + overflow: visible; + justify-content: center; + text-align: center; + flex: 0 0 auto; + background: transparent; + color: inherit; + transition: all 0.3s; + -webkit-font-smoothing: antialiased; + font-size: 16px; + height: 32px; + width: 32px; + margin-left: 0px; + margin-right: 0px; +} + +.c30 .c20 { + color: inherit; +} + +.c30:disabled { + color: rgba(255,255,255,0.36); +} + +.c30:disabled { + color: rgba(255,255,255,0.36); + cursor: default; +} + +.c30:hover:enabled, +.c30:focus:enabled { + background: rgba(255,255,255,0.13); +} + +.c30:active:enabled { + background: rgba(255,255,255,0.18); +} + +.c33 { + align-items: center; + border: none; + cursor: pointer; + display: flex; + outline: none; + border-radius: 50%; + overflow: visible; + justify-content: center; + text-align: center; + flex: 0 0 auto; + background: transparent; + color: inherit; + transition: all 0.3s; + -webkit-font-smoothing: antialiased; + font-size: 16px; + height: 32px; + width: 32px; + margin-left: 0px; +} + +.c33 .c20 { + color: inherit; +} + +.c33:disabled { + color: rgba(255,255,255,0.36); +} + +.c33:disabled { + color: rgba(255,255,255,0.36); + cursor: default; +} + +.c33:hover:enabled, +.c33:focus:enabled { + background: rgba(255,255,255,0.13); +} + +.c33:active:enabled { + background: rgba(255,255,255,0.18); +} + .c19 { overflow: hidden; text-overflow: ellipsis; @@ -1147,7 +1304,6 @@ exports[`loaded 1`] = ` .c24 { background: #222C59; - border-collapse: collapse; border-spacing: 0; font-size: 12px; width: 100%; @@ -1210,7 +1366,7 @@ exports[`loaded 1`] = ` line-height: 16px; } -.c24 tbody tr { +.c24 > tbody > tr:not(:last-of-type) > td { border-bottom: 1px solid rgba(255,255,255,0.07); } @@ -1238,6 +1394,7 @@ exports[`loaded 1`] = ` align-items: center; justify-content: space-between; background: #222C59; + border-top: 1px solid rgba(255,255,255,0.07); } .c4 { @@ -1266,29 +1423,12 @@ exports[`loaded 1`] = ` background-color: rgba(255,255,255,0.13); } -.c30 { - background: none; - border: none; - cursor: pointer; -} - -.c30 .c20 { +.c31 .c20 { font-size: 20px; - transition: all 0.3s; - opacity: 0.5; -} - -.c30:hover .c20, -.c30:focus .c20 { - opacity: 1; -} - -.c30:disabled { - cursor: default; } -.c30:disabled .c20 { - opacity: 0.1; +.c31 .c20:before { + padding-left: 1px; } .c13 { @@ -1710,20 +1850,20 @@ exports[`loaded 1`] = ` class="c22" > diff --git a/web/packages/teleport/src/Nodes/__snapshots__/Nodes.story.test.tsx.snap b/web/packages/teleport/src/Nodes/__snapshots__/Nodes.story.test.tsx.snap index df4de84002d15..2f5d020af59bb 100644 --- a/web/packages/teleport/src/Nodes/__snapshots__/Nodes.story.test.tsx.snap +++ b/web/packages/teleport/src/Nodes/__snapshots__/Nodes.story.test.tsx.snap @@ -357,13 +357,100 @@ exports[`failed 1`] = ` font-size: 14px; } -.c32 { +.c33 { display: inline-block; transition: color 0.3s; color: #FFFFFF; font-size: 16px; } +.c31 { + align-items: center; + border: none; + cursor: pointer; + display: flex; + outline: none; + border-radius: 50%; + overflow: visible; + justify-content: center; + text-align: center; + flex: 0 0 auto; + background: transparent; + color: inherit; + transition: all 0.3s; + -webkit-font-smoothing: antialiased; + font-size: 16px; + height: 32px; + width: 32px; + margin-left: 0px; + margin-right: 0px; +} + +.c31 .c20 { + color: inherit; +} + +.c31:disabled { + color: rgba(255,255,255,0.36); +} + +.c31:disabled { + color: rgba(255,255,255,0.36); + cursor: default; +} + +.c31:hover:enabled, +.c31:focus:enabled { + background: rgba(255,255,255,0.13); +} + +.c31:active:enabled { + background: rgba(255,255,255,0.18); +} + +.c34 { + align-items: center; + border: none; + cursor: pointer; + display: flex; + outline: none; + border-radius: 50%; + overflow: visible; + justify-content: center; + text-align: center; + flex: 0 0 auto; + background: transparent; + color: inherit; + transition: all 0.3s; + -webkit-font-smoothing: antialiased; + font-size: 16px; + height: 32px; + width: 32px; + margin-left: 0px; +} + +.c34 .c20 { + color: inherit; +} + +.c34:disabled { + color: rgba(255,255,255,0.36); +} + +.c34:disabled { + color: rgba(255,255,255,0.36); + cursor: default; +} + +.c34:hover:enabled, +.c34:focus:enabled { + background: rgba(255,255,255,0.13); +} + +.c34:active:enabled { + background: rgba(255,255,255,0.18); +} + .c19 { overflow: hidden; text-overflow: ellipsis; @@ -458,7 +545,6 @@ exports[`failed 1`] = ` .c24 { background: #222C59; - border-collapse: collapse; border-spacing: 0; font-size: 12px; width: 100%; @@ -521,7 +607,7 @@ exports[`failed 1`] = ` line-height: 16px; } -.c24 tbody tr { +.c24 > tbody > tr:not(:last-of-type) > td { border-bottom: 1px solid rgba(255,255,255,0.07); } @@ -549,6 +635,7 @@ exports[`failed 1`] = ` align-items: center; justify-content: space-between; background: #222C59; + border-top: 1px solid rgba(255,255,255,0.07); } .c4 { @@ -577,29 +664,12 @@ exports[`failed 1`] = ` background-color: rgba(255,255,255,0.13); } -.c31 { - background: none; - border: none; - cursor: pointer; -} - -.c31 .c20 { +.c32 .c20 { font-size: 20px; - transition: all 0.3s; - opacity: 0.5; } -.c31:hover .c20, -.c31:focus .c20 { - opacity: 1; -} - -.c31:disabled { - cursor: default; -} - -.c31:disabled .c20 { - opacity: 0.1; +.c32 .c20:before { + padding-left: 1px; } .c13 { @@ -1090,10 +1160,10 @@ exports[`failed 1`] = ` - ⟵ tunnel + ← tunnel @@ -1137,10 +1207,10 @@ exports[`failed 1`] = ` - ⟵ tunnel + ← tunnel @@ -1191,20 +1261,20 @@ exports[`failed 1`] = ` class="c22" > @@ -1323,13 +1393,100 @@ exports[`loaded 1`] = ` font-size: 14px; } -.c35 { +.c36 { display: inline-block; transition: color 0.3s; color: #FFFFFF; font-size: 16px; } +.c34 { + align-items: center; + border: none; + cursor: pointer; + display: flex; + outline: none; + border-radius: 50%; + overflow: visible; + justify-content: center; + text-align: center; + flex: 0 0 auto; + background: transparent; + color: inherit; + transition: all 0.3s; + -webkit-font-smoothing: antialiased; + font-size: 16px; + height: 32px; + width: 32px; + margin-left: 0px; + margin-right: 0px; +} + +.c34 .c23 { + color: inherit; +} + +.c34:disabled { + color: rgba(255,255,255,0.36); +} + +.c34:disabled { + color: rgba(255,255,255,0.36); + cursor: default; +} + +.c34:hover:enabled, +.c34:focus:enabled { + background: rgba(255,255,255,0.13); +} + +.c34:active:enabled { + background: rgba(255,255,255,0.18); +} + +.c37 { + align-items: center; + border: none; + cursor: pointer; + display: flex; + outline: none; + border-radius: 50%; + overflow: visible; + justify-content: center; + text-align: center; + flex: 0 0 auto; + background: transparent; + color: inherit; + transition: all 0.3s; + -webkit-font-smoothing: antialiased; + font-size: 16px; + height: 32px; + width: 32px; + margin-left: 0px; +} + +.c37 .c23 { + color: inherit; +} + +.c37:disabled { + color: rgba(255,255,255,0.36); +} + +.c37:disabled { + color: rgba(255,255,255,0.36); + cursor: default; +} + +.c37:hover:enabled, +.c37:focus:enabled { + background: rgba(255,255,255,0.13); +} + +.c37:active:enabled { + background: rgba(255,255,255,0.18); +} + .c22 { overflow: hidden; text-overflow: ellipsis; @@ -1483,7 +1640,6 @@ exports[`loaded 1`] = ` .c27 { background: #222C59; - border-collapse: collapse; border-spacing: 0; font-size: 12px; width: 100%; @@ -1546,7 +1702,7 @@ exports[`loaded 1`] = ` line-height: 16px; } -.c27 tbody tr { +.c27 > tbody > tr:not(:last-of-type) > td { border-bottom: 1px solid rgba(255,255,255,0.07); } @@ -1574,6 +1730,7 @@ exports[`loaded 1`] = ` align-items: center; justify-content: space-between; background: #222C59; + border-top: 1px solid rgba(255,255,255,0.07); } .c8 { @@ -1602,29 +1759,12 @@ exports[`loaded 1`] = ` background-color: rgba(255,255,255,0.13); } -.c34 { - background: none; - border: none; - cursor: pointer; -} - -.c34 .c23 { +.c35 .c23 { font-size: 20px; - transition: all 0.3s; - opacity: 0.5; -} - -.c34:hover .c23, -.c34:focus .c23 { - opacity: 1; -} - -.c34:disabled { - cursor: default; } -.c34:disabled .c23 { - opacity: 0.1; +.c35 .c23:before { + padding-left: 1px; } .c16 { @@ -2140,10 +2280,10 @@ exports[`loaded 1`] = ` - ⟵ tunnel + ← tunnel @@ -2187,10 +2327,10 @@ exports[`loaded 1`] = ` - ⟵ tunnel + ← tunnel @@ -2241,20 +2381,20 @@ exports[`loaded 1`] = ` class="c25" > diff --git a/web/packages/teleport/src/Recordings/__snapshots__/Recordings.story.test.tsx.snap b/web/packages/teleport/src/Recordings/__snapshots__/Recordings.story.test.tsx.snap index 2fb84b0e3c321..1810350d2cbb3 100644 --- a/web/packages/teleport/src/Recordings/__snapshots__/Recordings.story.test.tsx.snap +++ b/web/packages/teleport/src/Recordings/__snapshots__/Recordings.story.test.tsx.snap @@ -7,7 +7,7 @@ exports[`rendering of Session Recordings 1`] = ` width: 210px; } -.c22 { +.c24 { line-height: 1.5; margin: 0; display: inline-flex; @@ -34,35 +34,35 @@ exports[`rendering of Session Recordings 1`] = ` width: 80px; } -.c22:hover, -.c22:focus { +.c24:hover, +.c24:focus { background: #B29DFF; } -.c22:active { +.c24:active { background: #C5B6FF; } -.c22:disabled { +.c24:disabled { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.3); cursor: auto; } -.c18 { +.c19 { display: inline-block; transition: color 0.3s; color: #FFFFFF; font-size: 16px; } -.c20 { +.c22 { display: inline-block; transition: color 0.3s; color: #FFFFFF; } -.c21 { +.c23 { display: inline-block; transition: color 0.3s; color: #FFFFFF; @@ -71,6 +71,93 @@ exports[`rendering of Session Recordings 1`] = ` font-size: 16px; } +.c16 { + align-items: center; + border: none; + cursor: pointer; + display: flex; + outline: none; + border-radius: 50%; + overflow: visible; + justify-content: center; + text-align: center; + flex: 0 0 auto; + background: transparent; + color: inherit; + transition: all 0.3s; + -webkit-font-smoothing: antialiased; + font-size: 16px; + height: 32px; + width: 32px; + margin-left: 0px; + margin-right: 0px; +} + +.c16 .c18 { + color: inherit; +} + +.c16:disabled { + color: rgba(255,255,255,0.36); +} + +.c16:disabled { + color: rgba(255,255,255,0.36); + cursor: default; +} + +.c16:hover:enabled, +.c16:focus:enabled { + background: rgba(255,255,255,0.13); +} + +.c16:active:enabled { + background: rgba(255,255,255,0.18); +} + +.c20 { + align-items: center; + border: none; + cursor: pointer; + display: flex; + outline: none; + border-radius: 50%; + overflow: visible; + justify-content: center; + text-align: center; + flex: 0 0 auto; + background: transparent; + color: inherit; + transition: all 0.3s; + -webkit-font-smoothing: antialiased; + font-size: 16px; + height: 32px; + width: 32px; + margin-left: 0px; +} + +.c20 .c18 { + color: inherit; +} + +.c20:disabled { + color: rgba(255,255,255,0.36); +} + +.c20:disabled { + color: rgba(255,255,255,0.36); + cursor: default; +} + +.c20:hover:enabled, +.c20:focus:enabled { + background: rgba(255,255,255,0.13); +} + +.c20:active:enabled { + background: rgba(255,255,255,0.18); +} + .c14 { overflow: hidden; text-overflow: ellipsis; @@ -301,9 +388,8 @@ exports[`rendering of Session Recordings 1`] = ` padding-bottom: 24px; } -.c19 { +.c21 { background: #222C59; - border-collapse: collapse; border-spacing: 0; font-size: 12px; width: 100%; @@ -313,39 +399,39 @@ exports[`rendering of Session Recordings 1`] = ` border-bottom-left-radius: 8px; } -.c19 > thead > tr > th, -.c19 > tbody > tr > th, -.c19 > tfoot > tr > th, -.c19 > thead > tr > td, -.c19 > tbody > tr > td, -.c19 > tfoot > tr > td { +.c21 > thead > tr > th, +.c21 > tbody > tr > th, +.c21 > tfoot > tr > th, +.c21 > thead > tr > td, +.c21 > tbody > tr > td, +.c21 > tfoot > tr > td { padding: 8px 8px; vertical-align: middle; } -.c19 > thead > tr > th:first-child, -.c19 > tbody > tr > th:first-child, -.c19 > tfoot > tr > th:first-child, -.c19 > thead > tr > td:first-child, -.c19 > tbody > tr > td:first-child, -.c19 > tfoot > tr > td:first-child { +.c21 > thead > tr > th:first-child, +.c21 > tbody > tr > th:first-child, +.c21 > tfoot > tr > th:first-child, +.c21 > thead > tr > td:first-child, +.c21 > tbody > tr > td:first-child, +.c21 > tfoot > tr > td:first-child { padding-left: 24px; } -.c19 > thead > tr > th:last-child, -.c19 > tbody > tr > th:last-child, -.c19 > tfoot > tr > th:last-child, -.c19 > thead > tr > td:last-child, -.c19 > tbody > tr > td:last-child, -.c19 > tfoot > tr > td:last-child { +.c21 > thead > tr > th:last-child, +.c21 > tbody > tr > th:last-child, +.c21 > tfoot > tr > th:last-child, +.c21 > thead > tr > td:last-child, +.c21 > tbody > tr > td:last-child, +.c21 > tfoot > tr > td:last-child { padding-right: 24px; } -.c19 > tbody > tr > td { +.c21 > tbody > tr > td { vertical-align: middle; } -.c19 > thead > tr > th { +.c21 > thead > tr > th { background: rgba(255,255,255,0.07); color: #FFFFFF; cursor: pointer; @@ -359,22 +445,22 @@ exports[`rendering of Session Recordings 1`] = ` white-space: nowrap; } -.c19 > thead > tr > th .c17 { +.c21 > thead > tr > th .c18 { font-weight: bold; font-size: 8px; margin-left: 8px; } -.c19 > tbody > tr > td { +.c21 > tbody > tr > td { color: #FFFFFF; line-height: 16px; } -.c19 tbody tr { +.c21 > tbody > tr:not(:last-of-type) > td { border-bottom: 1px solid rgba(255,255,255,0.07); } -.c19 tbody tr:hover { +.c21 tbody tr:hover { background-color: rgba(255,255,255,0.07); } @@ -394,29 +480,12 @@ exports[`rendering of Session Recordings 1`] = ` border-radius: 8px; } -.c16 { - background: none; - border: none; - cursor: pointer; -} - -.c16 .c17 { +.c17 .c18 { font-size: 20px; - transition: all 0.3s; - opacity: 0.5; -} - -.c16:hover .c17, -.c16:focus .c17 { - opacity: 1; -} - -.c16:disabled { - cursor: default; } -.c16:disabled .c17 { - opacity: 0.1; +.c17 .c18:before { + padding-left: 1px; } .c11 { @@ -613,22 +682,22 @@ exports[`rendering of Session Recordings 1`] = ` class="c15" > @@ -636,7 +705,7 @@ exports[`rendering of Session Recordings 1`] = ` @@ -644,7 +713,7 @@ exports[`rendering of Session Recordings 1`] = ` Type @@ -653,7 +722,7 @@ exports[`rendering of Session Recordings 1`] = ` Name @@ -662,7 +731,7 @@ exports[`rendering of Session Recordings 1`] = ` User(s) @@ -671,7 +740,7 @@ exports[`rendering of Session Recordings 1`] = ` Duration @@ -680,7 +749,7 @@ exports[`rendering of Session Recordings 1`] = ` Created (UTC) @@ -699,7 +768,7 @@ exports[`rendering of Session Recordings 1`] = ` @@ -724,7 +793,7 @@ exports[`rendering of Session Recordings 1`] = ` align="right" > @@ -768,7 +837,7 @@ exports[`rendering of Session Recordings 1`] = ` @@ -799,7 +868,7 @@ exports[`rendering of Session Recordings 1`] = ` @@ -830,7 +899,7 @@ exports[`rendering of Session Recordings 1`] = ` @@ -861,7 +930,7 @@ exports[`rendering of Session Recordings 1`] = ` @@ -887,7 +956,7 @@ exports[`rendering of Session Recordings 1`] = ` style="" > @@ -926,7 +995,7 @@ exports[`rendering of Session Recordings 1`] = ` style="" > thead > tr > th, -.c17 > tbody > tr > th, -.c17 > tfoot > tr > th, -.c17 > thead > tr > td, -.c17 > tbody > tr > td, -.c17 > tfoot > tr > td { +.c19 > thead > tr > th, +.c19 > tbody > tr > th, +.c19 > tfoot > tr > th, +.c19 > thead > tr > td, +.c19 > tbody > tr > td, +.c19 > tfoot > tr > td { padding: 8px 8px; vertical-align: middle; } -.c17 > thead > tr > th:first-child, -.c17 > tbody > tr > th:first-child, -.c17 > tfoot > tr > th:first-child, -.c17 > thead > tr > td:first-child, -.c17 > tbody > tr > td:first-child, -.c17 > tfoot > tr > td:first-child { +.c19 > thead > tr > th:first-child, +.c19 > tbody > tr > th:first-child, +.c19 > tfoot > tr > th:first-child, +.c19 > thead > tr > td:first-child, +.c19 > tbody > tr > td:first-child, +.c19 > tfoot > tr > td:first-child { padding-left: 24px; } -.c17 > thead > tr > th:last-child, -.c17 > tbody > tr > th:last-child, -.c17 > tfoot > tr > th:last-child, -.c17 > thead > tr > td:last-child, -.c17 > tbody > tr > td:last-child, -.c17 > tfoot > tr > td:last-child { +.c19 > thead > tr > th:last-child, +.c19 > tbody > tr > th:last-child, +.c19 > tfoot > tr > th:last-child, +.c19 > thead > tr > td:last-child, +.c19 > tbody > tr > td:last-child, +.c19 > tfoot > tr > td:last-child { padding-right: 24px; } -.c17 > tbody > tr > td { +.c19 > tbody > tr > td { vertical-align: middle; } -.c17 > thead > tr > th { +.c19 > thead > tr > th { background: rgba(255,255,255,0.07); color: #FFFFFF; cursor: pointer; @@ -207,22 +293,22 @@ exports[`loaded 1`] = ` white-space: nowrap; } -.c17 > thead > tr > th .c15 { +.c19 > thead > tr > th .c16 { font-weight: bold; font-size: 8px; margin-left: 8px; } -.c17 > tbody > tr > td { +.c19 > tbody > tr > td { color: #FFFFFF; line-height: 16px; } -.c17 tbody tr { +.c19 > tbody > tr:not(:last-of-type) > td { border-bottom: 1px solid rgba(255,255,255,0.07); } -.c17 tbody tr:hover { +.c19 tbody tr:hover { background-color: rgba(255,255,255,0.07); } @@ -242,29 +328,12 @@ exports[`loaded 1`] = ` border-radius: 8px; } -.c14 { - background: none; - border: none; - cursor: pointer; -} - -.c14 .c15 { +.c15 .c16 { font-size: 20px; - transition: all 0.3s; - opacity: 0.5; -} - -.c14:hover .c15, -.c14:focus .c15 { - opacity: 1; -} - -.c14:disabled { - cursor: default; } -.c14:disabled .c15 { - opacity: 0.1; +.c15 .c16:before { + padding-left: 1px; } .c9 { @@ -333,7 +402,7 @@ exports[`loaded 1`] = ` font-size: 12px; } -.c18 tbody > tr > td { +.c20 tbody > tr > td { vertical-align: middle; } @@ -406,22 +475,22 @@ exports[`loaded 1`] = ` class="c13" > @@ -429,7 +498,7 @@ exports[`loaded 1`] = `
@@ -437,7 +506,7 @@ exports[`loaded 1`] = ` Type @@ -446,7 +515,7 @@ exports[`loaded 1`] = ` Name @@ -465,7 +534,7 @@ exports[`loaded 1`] = ` Duration @@ -479,7 +548,7 @@ exports[`loaded 1`] = ` @@ -503,7 +572,7 @@ exports[`loaded 1`] = ` @@ -524,16 +593,16 @@ exports[`loaded 1`] = ` height="26px" >
@@ -565,16 +634,16 @@ exports[`loaded 1`] = ` height="26px" >
@@ -606,16 +675,16 @@ exports[`loaded 1`] = ` height="26px" >
@@ -650,7 +719,7 @@ exports[`loaded 1`] = ` @@ -674,7 +743,7 @@ exports[`loaded 1`] = ` diff --git a/web/packages/teleport/src/Users/__snapshots__/Users.story.test.tsx.snap b/web/packages/teleport/src/Users/__snapshots__/Users.story.test.tsx.snap index 2638067c4be24..490fe5dcef5fb 100644 --- a/web/packages/teleport/src/Users/__snapshots__/Users.story.test.tsx.snap +++ b/web/packages/teleport/src/Users/__snapshots__/Users.story.test.tsx.snap @@ -44,7 +44,7 @@ exports[`success state 1`] = ` cursor: auto; } -.c22 { +.c24 { line-height: 1.5; margin: 0; display: inline-flex; @@ -72,35 +72,35 @@ exports[`success state 1`] = ` height: 24px; } -.c22:hover, -.c22:focus { +.c24:hover, +.c24:focus { background: rgba(255,255,255,0.07); } -.c22:active { +.c24:active { background: rgba(255,255,255,0.13); } -.c22:disabled { +.c24:disabled { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.3); cursor: auto; } -.c17 { +.c18 { display: inline-block; transition: color 0.3s; color: #FFFFFF; font-size: 16px; } -.c19 { +.c21 { display: inline-block; transition: color 0.3s; color: #FFFFFF; } -.c23 { +.c25 { display: inline-block; transition: color 0.3s; color: #FFFFFF; @@ -110,6 +110,93 @@ exports[`success state 1`] = ` font-size: 14px; } +.c15 { + align-items: center; + border: none; + cursor: pointer; + display: flex; + outline: none; + border-radius: 50%; + overflow: visible; + justify-content: center; + text-align: center; + flex: 0 0 auto; + background: transparent; + color: inherit; + transition: all 0.3s; + -webkit-font-smoothing: antialiased; + font-size: 16px; + height: 32px; + width: 32px; + margin-left: 0px; + margin-right: 0px; +} + +.c15 .c17 { + color: inherit; +} + +.c15:disabled { + color: rgba(255,255,255,0.36); +} + +.c15:disabled { + color: rgba(255,255,255,0.36); + cursor: default; +} + +.c15:hover:enabled, +.c15:focus:enabled { + background: rgba(255,255,255,0.13); +} + +.c15:active:enabled { + background: rgba(255,255,255,0.18); +} + +.c19 { + align-items: center; + border: none; + cursor: pointer; + display: flex; + outline: none; + border-radius: 50%; + overflow: visible; + justify-content: center; + text-align: center; + flex: 0 0 auto; + background: transparent; + color: inherit; + transition: all 0.3s; + -webkit-font-smoothing: antialiased; + font-size: 16px; + height: 32px; + width: 32px; + margin-left: 0px; +} + +.c19 .c17 { + color: inherit; +} + +.c19:disabled { + color: rgba(255,255,255,0.36); +} + +.c19:disabled { + color: rgba(255,255,255,0.36); + cursor: default; +} + +.c19:hover:enabled, +.c19:focus:enabled { + background: rgba(255,255,255,0.13); +} + +.c19:active:enabled { + background: rgba(255,255,255,0.18); +} + .c13 { overflow: hidden; text-overflow: ellipsis; @@ -121,7 +208,7 @@ exports[`success state 1`] = ` color: #FFFFFF; } -.c21 { +.c23 { box-sizing: border-box; border-radius: 10px; display: inline-block; @@ -155,7 +242,7 @@ exports[`success state 1`] = ` display: flex; } -.c20 { +.c22 { box-sizing: border-box; display: flex; flex-wrap: wrap; @@ -200,9 +287,8 @@ exports[`success state 1`] = ` padding-bottom: 24px; } -.c18 { +.c20 { background: #222C59; - border-collapse: collapse; border-spacing: 0; font-size: 12px; width: 100%; @@ -212,39 +298,39 @@ exports[`success state 1`] = ` border-bottom-left-radius: 8px; } -.c18 > thead > tr > th, -.c18 > tbody > tr > th, -.c18 > tfoot > tr > th, -.c18 > thead > tr > td, -.c18 > tbody > tr > td, -.c18 > tfoot > tr > td { +.c20 > thead > tr > th, +.c20 > tbody > tr > th, +.c20 > tfoot > tr > th, +.c20 > thead > tr > td, +.c20 > tbody > tr > td, +.c20 > tfoot > tr > td { padding: 8px 8px; vertical-align: middle; } -.c18 > thead > tr > th:first-child, -.c18 > tbody > tr > th:first-child, -.c18 > tfoot > tr > th:first-child, -.c18 > thead > tr > td:first-child, -.c18 > tbody > tr > td:first-child, -.c18 > tfoot > tr > td:first-child { +.c20 > thead > tr > th:first-child, +.c20 > tbody > tr > th:first-child, +.c20 > tfoot > tr > th:first-child, +.c20 > thead > tr > td:first-child, +.c20 > tbody > tr > td:first-child, +.c20 > tfoot > tr > td:first-child { padding-left: 24px; } -.c18 > thead > tr > th:last-child, -.c18 > tbody > tr > th:last-child, -.c18 > tfoot > tr > th:last-child, -.c18 > thead > tr > td:last-child, -.c18 > tbody > tr > td:last-child, -.c18 > tfoot > tr > td:last-child { +.c20 > thead > tr > th:last-child, +.c20 > tbody > tr > th:last-child, +.c20 > tfoot > tr > th:last-child, +.c20 > thead > tr > td:last-child, +.c20 > tbody > tr > td:last-child, +.c20 > tfoot > tr > td:last-child { padding-right: 24px; } -.c18 > tbody > tr > td { +.c20 > tbody > tr > td { vertical-align: middle; } -.c18 > thead > tr > th { +.c20 > thead > tr > th { background: rgba(255,255,255,0.07); color: #FFFFFF; cursor: pointer; @@ -258,22 +344,22 @@ exports[`success state 1`] = ` white-space: nowrap; } -.c18 > thead > tr > th .c16 { +.c20 > thead > tr > th .c17 { font-weight: bold; font-size: 8px; margin-left: 8px; } -.c18 > tbody > tr > td { +.c20 > tbody > tr > td { color: #FFFFFF; line-height: 16px; } -.c18 tbody tr { +.c20 > tbody > tr:not(:last-of-type) > td { border-bottom: 1px solid rgba(255,255,255,0.07); } -.c18 tbody tr:hover { +.c20 tbody tr:hover { background-color: rgba(255,255,255,0.07); } @@ -293,29 +379,12 @@ exports[`success state 1`] = ` border-radius: 8px; } -.c15 { - background: none; - border: none; - cursor: pointer; -} - -.c15 .c16 { +.c16 .c17 { font-size: 20px; - transition: all 0.3s; - opacity: 0.5; -} - -.c15:hover .c16, -.c15:focus .c16 { - opacity: 1; -} - -.c15:disabled { - cursor: default; } -.c15:disabled .c16 { - opacity: 0.1; +.c16 .c17:before { + padding-left: 1px; } .c10 { @@ -461,22 +530,22 @@ exports[`success state 1`] = ` class="c14" > @@ -484,7 +553,7 @@ exports[`success state 1`] = `
@@ -492,7 +561,7 @@ exports[`success state 1`] = ` Name @@ -501,7 +570,7 @@ exports[`success state 1`] = ` Roles @@ -510,7 +579,7 @@ exports[`success state 1`] = ` Type @@ -527,10 +596,10 @@ exports[`success state 1`] = `
tugu @@ -546,13 +615,13 @@ exports[`success state 1`] = ` align="right" >
admin @@ -584,13 +653,13 @@ exports[`success state 1`] = ` align="right" >
ruhh
admin @@ -628,13 +697,13 @@ exports[`success state 1`] = ` align="right" >
ubip
duzjadj
dupiwuzocafe
abc
anavebikilonim @@ -696,22 +765,22 @@ exports[`success state 1`] = `
vuit
vedkonm
valvapel @@ -733,22 +802,22 @@ exports[`success state 1`] = `
kaco
ziuzzow
admin diff --git a/web/packages/teleport/src/components/NodeList/NodeList.tsx b/web/packages/teleport/src/components/NodeList/NodeList.tsx index efe3a7643b686..fba3534bb3534 100644 --- a/web/packages/teleport/src/components/NodeList/NodeList.tsx +++ b/web/packages/teleport/src/components/NodeList/NodeList.tsx @@ -139,9 +139,11 @@ export const renderAddressCell = ({ addr, tunnel }: Node) => ( function renderTunnel() { return ( {`⟵ tunnel`} + > + ← tunnel + ); } diff --git a/web/packages/teleterm/src/ui/DocumentCluster/ClusterResources/ClusterResources.tsx b/web/packages/teleterm/src/ui/DocumentCluster/ClusterResources/ClusterResources.tsx index 909acfb90247e..ddb2916d31dbf 100644 --- a/web/packages/teleterm/src/ui/DocumentCluster/ClusterResources/ClusterResources.tsx +++ b/web/packages/teleterm/src/ui/DocumentCluster/ClusterResources/ClusterResources.tsx @@ -40,7 +40,7 @@ export default function ClusterResources() { return ( - + {clusterCtx.isLocationActive('/resources/servers') && } diff --git a/web/packages/teleterm/src/ui/DocumentCluster/ClusterResources/Servers/Servers.tsx b/web/packages/teleterm/src/ui/DocumentCluster/ClusterResources/Servers/Servers.tsx index 17cb2f3e77cb7..3285f6d304ade 100644 --- a/web/packages/teleterm/src/ui/DocumentCluster/ClusterResources/Servers/Servers.tsx +++ b/web/packages/teleterm/src/ui/DocumentCluster/ClusterResources/Servers/Servers.tsx @@ -131,9 +131,11 @@ const renderAddressCell = ({ addr, tunnel }: ReturnType) => ( {tunnel && ( {`⟵ tunnel`} + > + ← tunnel + )} {!tunnel && addr}