From 1c248ad18c9d0fe8602c4762f7969644d6bdc930 Mon Sep 17 00:00:00 2001 From: Tasso Evangelista Date: Wed, 3 Jul 2019 23:58:43 -0300 Subject: [PATCH] Update tabs markup --- app/theme/client/imports/components/tabs.css | 17 +++++++++++++++-- app/ui/client/components/tabs.html | 13 ++++++++++--- app/ui/client/components/tabs.js | 16 +++++++++++----- app/ui/client/index.js | 1 - 4 files changed, 36 insertions(+), 11 deletions(-) diff --git a/app/theme/client/imports/components/tabs.css b/app/theme/client/imports/components/tabs.css index cf7a87448cd2..187394482509 100644 --- a/app/theme/client/imports/components/tabs.css +++ b/app/theme/client/imports/components/tabs.css @@ -13,8 +13,9 @@ } .tab { + display: flex; + margin: 0 1rem; - padding: 1rem 0; cursor: pointer; @@ -24,13 +25,25 @@ border-bottom: 2px solid transparent; + font-family: inherit; font-size: 1rem; - font-weight: 500; line-height: 1.25rem; + align-items: stretch; + flex-flow: row nowrap; &.active { color: var(--rc-color-button-primary); border-bottom-color: var(--rc-color-button-primary); } + + &:focus { + text-decoration: underline; + } + + & > span { + flex: 1; + + padding: 1rem 0; + } } diff --git a/app/ui/client/components/tabs.html b/app/ui/client/components/tabs.html index 37ec16ef2270..5ed7ec7395d5 100644 --- a/app/ui/client/components/tabs.html +++ b/app/ui/client/components/tabs.html @@ -1,8 +1,15 @@