Skip to content

Commit 71d70f8

Browse files
committed
Make sure responsive button controls have same context as tabs parent.
1 parent 9765eed commit 71d70f8

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,14 @@ cbp-tabs {
104104
// TechDebt - dark colors CSS API not yet implemented in cbp-button
105105
cbp-button:not(#fakeId) {
106106
align-self: flex-start;
107+
/* Restore this when button CSS API is fixed
107108
--cbp-button-color-text: var(--cbp-tab-color);
108109
--cbp-button-color-text-dark: var(--cbp-tab-color-dark);
109110
--cbp-button-color-fill: var(--cbp-color-background-light);
110111
--cbp-button-color-fill-dark: var(--cbp-color-background-dark);
111112
--cbp-button-color-border: var(--cbp-color-gray-cool-30);
112113
--cbp-button-color-border-dark: var(--cbp-color-gray-cool-60);
114+
*/
113115
--cbp-button-border-radius: 0;
114116
}
115117

packages/web-components/src/components/cbp-tabs/cbp-tabs.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ export class CbpTabs {
154154
variant="square"
155155
width="3.5rem"
156156
height="3.5rem"
157+
context={this.context}
157158
onClick={ () => this.responsiveNav('previous')}
158159
ref={el => (this.previousControl = el)}
159160
>
@@ -180,6 +181,7 @@ export class CbpTabs {
180181
variant="square"
181182
width="3.5rem"
182183
height="3.5rem"
184+
context={this.context}
183185
onClick={ () => this.responsiveNav('next')}
184186
ref={el => (this.nextControl = el)}
185187
>

0 commit comments

Comments
 (0)