Skip to content

Commit b520fc4

Browse files
fix(tabs): container size wrong (#11556)
* fix(tabs): container size wrong * fix(tabs-extended-media): spacing --------- Co-authored-by: kennylam <909118+kennylam@users.noreply.github.com>
1 parent 03e56ae commit b520fc4

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

packages/carbon-web-components/src/components/tabs/tabs.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ $inset-transition: inset 110ms motion(standard, productive);
2828
overflow: scroll;
2929
flex: 1 1 0%;
3030
// for some reason, overflow: hidden shrinks the content
31-
block-size: $spacing-09;
31+
block-size: $spacing-08;
3232
scrollbar-width: none;
3333

3434
&::-webkit-scrollbar {

packages/styles/scss/components/tabs-extended-media/_tabs-extended-media.scss

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright IBM Corp. 2016, 2023
2+
* Copyright IBM Corp. 2016, 2024
33
*
44
* This source code is licensed under the Apache-2.0 license found in the
55
* LICENSE file in the root directory of this source tree.
@@ -59,3 +59,8 @@
5959
}
6060
}
6161
}
62+
63+
:host(#{$c4d-prefix}-tabs-extended-media[type='contained'])
64+
.#{$prefix}--tabs-nav-content-container {
65+
block-size: $spacing-09;
66+
}

0 commit comments

Comments
 (0)