Skip to content

Table-related improvements #25333

Merged
gzdunek merged 6 commits intogzdunek/theme-updatesfrom
gzdunek/table-improvements
May 4, 2023
Merged

Table-related improvements #25333
gzdunek merged 6 commits intogzdunek/theme-updatesfrom
gzdunek/table-improvements

Conversation

@gzdunek
Copy link
Copy Markdown
Contributor

@gzdunek gzdunek commented Apr 28, 2023

e counterpart https://github.com/gravitational/teleport.e/pull/1244

Here are a few table-related fixes:

  • pagination now uses a standard ButtonIcon (it has proper colors)
  • added a better HTML arrow for the reverse tunnel (which is aligned properly - I hope it wasn't a feature 😄)
    • old ⟵ tunnel
    • new ← tunnel
  • changed a row separator to be defined on td element instead of tr - Safari incorrectly renders semi-transparent color when table borders are collapsed (more info in a comment)
  • the separator between the table and the element below has to be created manually from now - previously it was a border from the last tr element. It was fine when the table had an element below it, but if not, we just rendered a weird-looking line:

image

  • also added some bottom padding for Connect resource tables

(I'm going to merge this PR into gzdunek/theme-updates, so I'll have less work with backports)

Copy link
Copy Markdown
Contributor

@ibeckermayer ibeckermayer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Appreciate the attention to detail.

Reminder to check the e-ref before merging.

@gzdunek gzdunek merged commit 45b6576 into gzdunek/theme-updates May 4, 2023
@gzdunek gzdunek deleted the gzdunek/table-improvements branch May 4, 2023 14:30
@public-teleport-github-review-bot
Copy link
Copy Markdown

@gzdunek See the table below for backport results.

Branch Result
branch/v13 Failed

gzdunek added a commit that referenced this pull request May 4, 2023
* Make pagination icons a little more visible

* Use different color for `tr` border

* Use `opacity: 1` for placeholders

* Include `borderRadius` in `StyledPanel` to fix rounded corners in Connect custom tables

* Use `colors.text.primary` for items in `MenuLogin`

* Adjust Connect theme to the updated dark theme

* Remove unused component

* Update snapshots

* Remove `surfaceSecondary` and `sunkenSecondary` colors

* Remove unneeded `inherit`

* Do not hardcode bg color in `TextArea`

* Expand comment

* Simplify the look of top bar elements

* Remove unused component

* Remove `text.contrast`

* Use the same dark theme for WebUI and Connect

* Revert "Make pagination icons a little more visible"

This reverts commit 1fe1d7b.

* Add shadow for the tabs

* Post-merge fixes

* Do not use Arial on custom buttons

* Revert snapshot changes

* Fix colors in `ActionPicker`

* Apply hover styles directly on `SearchBar` input

* Use white color for "Database Connection" header

* Add shadow directly to `StyledTabs`

* Run prettier

* Update e

* Add some top padding to the terminal

* Review fixes

* Move SearchBar hover to the Flex element

* Table-related improvements  (#25333)

* Use a better icon for the reverse tunnel cell

* Use `ButtonIcon` for pagination icons

* Fix rendering table border on Safari

* Manually add a visual separator between the table and the element below it

* Add bottom padding to resource tables in Connect

* Update snapshots

* Update snapshots

* Revert e
gzdunek added a commit that referenced this pull request May 4, 2023
* Theme fixes (#24883)

* Make pagination icons a little more visible

* Use different color for `tr` border

* Use `opacity: 1` for placeholders

* Include `borderRadius` in `StyledPanel` to fix rounded corners in Connect custom tables

* Use `colors.text.primary` for items in `MenuLogin`

* Adjust Connect theme to the updated dark theme

* Remove unused component

* Update snapshots

* Remove `surfaceSecondary` and `sunkenSecondary` colors

* Remove unneeded `inherit`

* Do not hardcode bg color in `TextArea`

* Expand comment

* Simplify the look of top bar elements

* Remove unused component

* Remove `text.contrast`

* Use the same dark theme for WebUI and Connect

* Revert "Make pagination icons a little more visible"

This reverts commit 1fe1d7b.

* Add shadow for the tabs

* Post-merge fixes

* Do not use Arial on custom buttons

* Revert snapshot changes

* Fix colors in `ActionPicker`

* Apply hover styles directly on `SearchBar` input

* Use white color for "Database Connection" header

* Add shadow directly to `StyledTabs`

* Run prettier

* Update e

* Add some top padding to the terminal

* Review fixes

* Move SearchBar hover to the Flex element

* Table-related improvements  (#25333)

* Use a better icon for the reverse tunnel cell

* Use `ButtonIcon` for pagination icons

* Fix rendering table border on Safari

* Manually add a visual separator between the table and the element below it

* Add bottom padding to resource tables in Connect

* Update snapshots

* Update snapshots

* Revert e

(cherry picked from commit 1870c80)

* Update `Session.story.test.tsx.snap`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants