Skip to content

Commit

Permalink
fix(tabs): prevent vertical scrolling in overflow tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
Westbrook committed Dec 5, 2023
1 parent 4aba1c6 commit eb0592f
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions packages/tabs/src/tabs.css
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ governing permissions and limitations under the License.
justify-content: var(--swc-tabs-list-justify-content);
}

:host([disabled]) #list {
pointer-events: none;
}

:host([disabled]) #list #selection-indicator {
background-color: var(
--mod-tabs-color-disabled,
Expand All @@ -51,10 +55,6 @@ governing permissions and limitations under the License.
color: var(--mod-tabs-color-disabled, var(--spectrum-tabs-color-disabled));
}

:host([disabled]) #list {
pointer-events: none;
}

/*
* TODO remove after next tabs release
* While https://github.com/adobe/spectrum-css/issues/641 goes unaddressed,
Expand All @@ -70,8 +70,9 @@ governing permissions and limitations under the License.
}

:host([dir][direction='horizontal']) #list.scroll {
overflow-x: auto;
scrollbar-width: none;
overflow-x: auto;
overflow-y: hidden;
}

:host([dir][direction='horizontal']) #list.scroll::-webkit-scrollbar {
Expand Down

0 comments on commit eb0592f

Please sign in to comment.