:host { display: block; } .hy-tabs__container { .hy-tablist-container { border-bottom: 1px solid var(--grayscale-tabs-border); position: relative; } .hy-tab-scroll { background-color: var(--brand-main-light); border-radius: 50%; border: 0; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1); padding: 0; position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; &.is-hidden { display: none; visibility: hidden; } &.is-disabled { background-color: var(--grayscale-medium); &:hover { cursor: none; } } &:focus, &:hover { outline: none; cursor: pointer; } svg { fill: var(--grayscale-white); height: 16px; margin: 8px; position: relative; width: 16px; @include breakpoint($narrow) { height: 18px; margin: 9px; //36x36 width: 18px; } @include breakpoint($wide) { height: 24px; margin: 10px; //44x44 width: 24px; } } &__left { left: 0; svg { left: -1.5px; } } &__right { right: 0; svg { left: 1.5px; } } } [role='tablist'] { display: flex; flex-direction: row; margin: 0 0 -0.1em; overflow: scroll; position: relative; white-space: nowrap; &::-webkit-scrollbar { display: none; } } [role='tab'] { @include font-size(14px, 16px); align-items: center; background-color: var(--grayscale-background-box); border: 0; color: var(--grayscale-black); display: flex; flex-direction: row; flex-shrink: 0; font-family: var(--main-font-family); font-weight: 600; justify-content: center; letter-spacing: -0.44px; margin: 0 8px 0 0; max-width: calc(100% / 12 * 3); min-height: 44px; min-width: 100px; padding: 8px; position: relative; white-space: normal; span.tab-title { padding: 8px; } @include breakpoint($narrow) { @include font-size(18px, 24px); letter-spacing: -0.56px; padding: 8px 12px; span.tab-title { padding: 8px 12px; } } @include breakpoint($medium) { padding: 8px 16px; span.tab-title { padding: 8px 16px; } } @include breakpoint($overwide) { margin-right: 12px; } } [role='tab'][aria-selected='true'] { background: var(--grayscale-white); border: 1px solid var(--grayscale-tabs-border); border-bottom-width: 0; box-shadow: inset 0 1px 0 0 var(--grayscale-medium), inset -1px 1px 0 0 var(--grayscale-medium), inset 1px 1px 0 0 var(--grayscale-medium), 0 -4px 8px -4px rgba(0, 0, 0, 0.1); font-weight: bold; margin-bottom: -1px; padding-bottom: 9px; } [role='tab']:hover, [role='tab']:focus, [role='tab']:active { border-radius: 0; color: inherit; cursor: pointer; text-decoration: none; } [role='tab']:hover::before, [role='tab']:focus::before { } [role='tabpanel'] { padding: 1.5em 0.5em 0.7em; position: relative; z-index: 2; } [role='tabpanel']:focus { outline: 0; } }