Skip to content

Commit 0ca0f08

Browse files
authored
Fix missing CSS namespace on active IDE tab class (#917)
1 parent a86c930 commit 0ca0f08

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

.changeset/neat-singers-rest.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@primer/react-brand': patch
3+
---
4+
5+
Internal change to CSS module type definitions in the `IDE` component. No user-facing updates to `IDE` presentation or functionality are expected.

packages/react/src/IDE/IDE.module.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -212,13 +212,13 @@
212212
background: var(--brand-IDE-glass-editor-tab-bgColor-rest);
213213
}
214214

215-
.IDE__Editor-tab.active {
215+
.IDE__Editor-tab--active {
216216
color: var(--brand-color-text-default);
217217
border-top: var(--brand-borderWidth-thin) solid var(--brand-IDE-default-editor-tab-borderColor);
218218
z-index: 1;
219219
}
220220

221-
.IDE--default .IDE__Editor-tab.active {
221+
.IDE--default .IDE__Editor-tab--active {
222222
background: var(--brand-IDE-default-editor-tab-bgColor-active);
223223
}
224224

@@ -227,12 +227,12 @@
227227
color: var(--brand-color-text-subtle);
228228
}
229229

230-
.IDE--glass .IDE__Editor-tab.active {
230+
.IDE--glass .IDE__Editor-tab--active {
231231
color: var(--brand-color-text-default);
232232
background: var(--brand-IDE-glass-editor-tab-bgColor-active);
233233
}
234234

235-
.IDE--full-exp.IDE--glass .IDE__Editor-tab.active {
235+
.IDE--full-exp.IDE--glass .IDE__Editor-tab--active {
236236
background: var(--brand-IDE-default-editor-bgColor);
237237
}
238238

packages/react/src/IDE/IDE.module.css.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ declare const styles: {
3030
readonly "IDE__Editor-pane--suggested": string;
3131
readonly "IDE__Editor-replay": string;
3232
readonly "IDE__Editor-tab": string;
33+
readonly "IDE__Editor-tab--active": string;
3334
readonly "IDE__Editor-tab-close-icon": string;
3435
readonly "IDE__Editor-tab-icon": string;
3536
readonly "IDE__Editor-tabs": string;
3637
readonly "IDE__inner": string;
3738
readonly "IDE__main": string;
38-
readonly "active": string;
3939
};
4040
export = styles;
4141

packages/react/src/IDE/IDE.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ const _Editor = memo(
438438
<button
439439
{...tabs.getTabProps(index.toString())}
440440
key={file.name}
441-
className={clsx(styles['IDE__Editor-tab'], isActiveTab && styles.active)}
441+
className={clsx(styles['IDE__Editor-tab'], isActiveTab && styles['IDE__Editor-tab--active'])}
442442
>
443443
{language && (
444444
<img

0 commit comments

Comments
 (0)