@khanacademy/wonder-blocks-tabs 1.0.13 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,152 @@
1
1
  # @khanacademy/wonder-blocks-tabs
2
2
 
3
+ ## 2.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - 647e025: **Breaking:** this package now styles its components with CSS Modules instead
8
+ of Aphrodite (WB-2120), and its components render unstyled unless its CSS is
9
+ loaded. To set it up:
10
+
11
+ - **Load the CSS.** The JS entry imports `dist/index.css` as a side effect, and
12
+ `"sideEffects": ["**/*.css"]` keeps bundlers from dropping it, so standard
13
+ webpack, Vite and Next.js setups need no change. Builds that can't process
14
+ CSS imports (some SSR or Jest setups) need a CSS loader or mock. The
15
+ stylesheet is also exported as `./css` for apps that load it explicitly.
16
+ - **Declare the cascade layer order** before any Wonder Blocks CSS:
17
+ `@layer reset, shared, shared.base, shared.reset, legacy;`. The component
18
+ rules live in `@layer shared`, so unlayered app CSS now beats them
19
+ regardless of specificity. Overrides passed through `style` / `styles`
20
+ props still go through Aphrodite and keep winning.
21
+
22
+ `filters`, `icon` and `tabs` also gain an `exports` map, so deep imports such
23
+ as `@khanacademy/wonder-blocks-icon/dist/...` no longer resolve. Import from
24
+ the package root or `./css` instead.
25
+
26
+ See the package's other changesets for the precedence edge cases that change
27
+ behavior, and the "Get Started / CSS setup" guide in Storybook.
28
+
29
+ ### Minor Changes
30
+
31
+ - c8d0485: Migrate `TabsDropdown` and `NavigationTabsDropdown` (the dropdown layouts of
32
+ `ResponsiveTabs` and `ResponsiveNavigationTabs`) from Aphrodite to CSS Modules
33
+ (WB-2618, CSS Modules Phase 5 / Wave J). The public component API is
34
+ unchanged: same props, same DOM structure, and the same `styles.*` overrides.
35
+
36
+ - Styling now lives in colocated `*.module.css` files. The overrides of
37
+ `ActionMenu`'s wrapper, the `Button` opener and its label are nested under a
38
+ `.root` marker class on each component's root element, so they win over the
39
+ dropdown, button and core rules on specificity rather than stylesheet load
40
+ order.
41
+ - `wonder-blocks-tabs` no longer uses Aphrodite, so `aphrodite` is dropped from
42
+ its `peerDependencies`. The package now declares CSS `sideEffects` and
43
+ exposes its stylesheet as `@khanacademy/wonder-blocks-tabs/css`.
44
+
45
+ - fb6a044: Migrate `Tabs`, `Tab`, `Tablist`, `TabPanel`, `NavigationTabs`,
46
+ `NavigationTabItem`, `ResponsiveTabs` and `ResponsiveNavigationTabs` from
47
+ Aphrodite to CSS Modules (WB-2334, CSS Modules Phase 5 / Wave F). The public
48
+ component API is unchanged — same props, same DOM structure, and the same
49
+ `style` / `styles.*` overrides.
50
+
51
+ - Styling now lives in colocated `*.module.css` files. The fade-in between the
52
+ tabs and dropdown layouts is now a CSS `@keyframes` animation scoped to the
53
+ module.
54
+ - `Tab` qualifies its rules with a `root` marker class so they outrank the
55
+ typography classes on the same button (`display`, `margin`).
56
+ - `NavigationTabItem` styles its child link with rules nested inside the list
57
+ item, so they outrank `Link`'s own CSS Modules rules on specificity. The link
58
+ rule now declares the BodyText medium typography itself instead of applying
59
+ the Aphrodite `styles.BodyTextMediumMediumWeight` from
60
+ `wonder-blocks-typography`.
61
+ - **Behavior change for `style` / `styles.tab` overrides:** as with `Link`, a
62
+ consumer override of a property the tab changes on hover / press (most
63
+ commonly `color`) now applies in every state, rather than being replaced
64
+ by the built-in hover / press colour.
65
+ - The package now ships `dist/index.css` (auto side-effect import).
66
+
67
+ ### Patch Changes
68
+
69
+ - 0b6c478: Add breakpoint custom media queries for CSS. `@khanacademy/wonder-blocks-tokens/custom-media.css`
70
+ defines one `@custom-media` per `breakpoint.mediaQuery` token (e.g.
71
+ `@media (--wb-breakpoint-mediaQuery-mdOrLarger)`). Expand them at build time by
72
+ adding `@csstools/postcss-global-data` (with
73
+ `files: [require.resolve("@khanacademy/wonder-blocks-tokens/custom-media.css")]`)
74
+ and `postcss-custom-media` to your PostCSS config. `NavigationTabItem` now uses the `mdOrLarger` breakpoint;
75
+ its emitted query changes from `(width >= 682px)` to the equivalent
76
+ `(min-width: 682px)`, matching the Aphrodite token and supporting Safari < 16.4.
77
+
78
+ `BirthdayPicker` now stacks its selects at the `xsOrSmaller` breakpoint
79
+ (`max-width: 567px`, previously a hard-coded `max-width: 520px`).
80
+
81
+ - 9652f57: Load each package's CSS after the CSS of the Wonder Blocks packages it depends
82
+ on. The published JS imported its own `index.css` before its dependencies, so
83
+ bundlers emitted, for example, Button's CSS before Typography's. Both sit in
84
+ `@layer shared` with single-class selectors, so the later `BodyText` rule won and
85
+ Button labels lost their own `font-weight`, `line-height` and `font-size`. The CSS
86
+ import now comes after the dependency imports, matching the source order that
87
+ Storybook already uses.
88
+ - f52e4cd: List the `types` condition first in the `.` export of the package.json (where it wasn't already), so TypeScript picks it before `import`/`require`. Make the `./css` export conditional: `import` now resolves to `dist/es/index.css`, the copy the ESM entry already loads, so importing `./css` alongside the components no longer loads the CSS twice. `require` still resolves to `dist/index.css`.
89
+ - a1002be: Add `typographyClassNames` to `@khanacademy/wonder-blocks-typography`: a CSS
90
+ Modules counterpart of the Aphrodite `styles` export, with the same keys (for
91
+ example `typographyClassNames.BodyTextMediumMediumWeight`). Each value is the
92
+ class (or pair of classes) that `Heading`, `BodyText` and `BodyMonospace`
93
+ already render with, so it declares exactly the same properties. Pass it
94
+ through the Wonder Blocks `style` prop.
95
+
96
+ The Aphrodite `styles` export is unchanged and still exported, as it is still
97
+ consumed outside this repo (including as a spreadable object).
98
+
99
+ `TextField`, `TextArea`, `SearchField` and `Tab` now use `typographyClassNames`
100
+ instead of `styles`. Rendered output is unchanged. Unlike the Aphrodite styles,
101
+ the classes are emitted in `@layer shared`, so Aphrodite styles on the same
102
+ element win regardless of their position in the `style` array. That's why:
103
+
104
+ - `SearchField` drops `display: flex` from its input reset; the typography
105
+ style that followed it in the array always overrode it to `display: block`,
106
+ so it never applied.
107
+
108
+ - e4f0a12: Declare `@khanacademy/wonder-blocks-styles` as a direct dependency in `wonder-blocks-card`, `wonder-blocks-form`, and `wonder-blocks-tabs`. These packages were already importing `focusStyles` from the styles package but were resolving it transitively through the workspace symlink — once `wonder-blocks-styles` gained an explicit `exports` map, Rollup tried to load its `dist/es/index.js` instead of externalizing the import. Making the dep declaration explicit fixes the build and matches what npm-installed consumers actually need at runtime.
109
+ - Updated dependencies [0c6d97d]
110
+ - Updated dependencies [185dbbc]
111
+ - Updated dependencies [0b6c478]
112
+ - Updated dependencies [9652f57]
113
+ - Updated dependencies [aa5a8e1]
114
+ - Updated dependencies [f52e4cd]
115
+ - Updated dependencies [f52e4cd]
116
+ - Updated dependencies [647e025]
117
+ - Updated dependencies [b66b7b7]
118
+ - Updated dependencies [bfd43de]
119
+ - Updated dependencies [e5b3a5e]
120
+ - Updated dependencies [dbb8f0f]
121
+ - Updated dependencies [be9c311]
122
+ - Updated dependencies [b8a32c8]
123
+ - Updated dependencies [14e0d32]
124
+ - Updated dependencies [d5316c4]
125
+ - Updated dependencies [0c3b48d]
126
+ - Updated dependencies [ea22448]
127
+ - Updated dependencies [82ae405]
128
+ - Updated dependencies [ad52f4b]
129
+ - Updated dependencies [9c09ca7]
130
+ - Updated dependencies [a1002be]
131
+ - Updated dependencies [b9156f8]
132
+ - Updated dependencies [e4f0a12]
133
+ - Updated dependencies [415b002]
134
+ - Updated dependencies [44dac93]
135
+ - @khanacademy/wonder-blocks-tokens@18.3.0
136
+ - @khanacademy/wonder-blocks-core@13.0.0
137
+ - @khanacademy/wonder-blocks-button@12.0.0
138
+ - @khanacademy/wonder-blocks-dropdown@12.0.0
139
+ - @khanacademy/wonder-blocks-icon@7.0.0
140
+ - @khanacademy/wonder-blocks-link@11.0.0
141
+ - @khanacademy/wonder-blocks-typography@6.0.0
142
+ - @khanacademy/wonder-blocks-styles@1.0.0
143
+
144
+ ## 1.0.14
145
+
146
+ ### Patch Changes
147
+
148
+ - @khanacademy/wonder-blocks-dropdown@11.0.4
149
+
3
150
  ## 1.0.13
4
151
 
5
152
  ### Patch Changes
@@ -44,4 +44,3 @@ export declare const Tab: React.ForwardRefExoticComponent<Readonly<import("@khan
44
44
  */
45
45
  icon?: React.ReactElement;
46
46
  } & React.RefAttributes<HTMLButtonElement>>;
47
- export declare const styles: import("aphrodite").StyleDeclaration;
@@ -0,0 +1,430 @@
1
+ @layer shared {/**
2
+ * NavigationTabs styles
3
+ *
4
+ * Every element is rendered by `addStyle`, which ships no class of its own, so
5
+ * these single-class rules don't compete with anything else in
6
+ * `@layer shared`. The consumer's `styles.*` still go through Aphrodite
7
+ * (unlayered and `!important`), so they win over this module as they did
8
+ * before. The build wraps every rule in `@layer shared { … }`.
9
+ */.wb-navigation-tabs-nav-01a8895f {
10
+ overflow-x: auto;
11
+ }.wb-navigation-tabs-contents-01a8895f {
12
+ position: relative;
13
+ }.wb-navigation-tabs-list-01a8895f {
14
+ /* Add horizontal padding for focus outline of first/last elements */
15
+ padding-inline: var(--wb-sizing-size_040);
16
+ padding-block: var(--wb-sizing-size_0);
17
+ margin: var(--wb-sizing-size_0);
18
+ display: flex;
19
+ gap: var(--wb-sizing-size_160);
20
+ flex-wrap: nowrap;
21
+ }.wb-navigation-tabs-divider-01a8895f {
22
+ border-block-end: var(--wb-border-width-thin) solid
23
+ var(--wb-semanticColor-core-border-neutral-subtle);
24
+ }
25
+ }
26
+
27
+ @layer shared {/**
28
+ * NavigationTabItem styles
29
+ *
30
+ * `.root` is the list item (rendered by `addStyle`, no class of its own). The
31
+ * link rules style the item's child — usually a Wonder Blocks `Link` — whose
32
+ * own rules sit in the same `@layer shared`. Which package's stylesheet comes
33
+ * first depends on the consumer's bundler and import order, so the link rules
34
+ * are nested inside `.root` to outrank `Link`'s on specificity alone:
35
+ * `Link`'s base classes are (0,1,0) and its states (0,2,0); the rules below
36
+ * are (0,2,0) for the base and (0,3,0)+ for states.
37
+ *
38
+ * The link rule also declares the BodyText medium typography itself rather
39
+ * than applying the typography classes: those are (0,1,0), the same as
40
+ * `Link`'s `font-family` / `font-weight` (bold in thunderblocks), so the winner
41
+ * would depend on load order; and the Aphrodite typography object would beat
42
+ * this rule's `display: flex`.
43
+ *
44
+ * The consumer's `style` still goes through Aphrodite (unlayered and
45
+ * `!important`), so it wins over this module as it did before. Nesting is
46
+ * native CSS: every `&` is explicit and resolves to the flat selector it
47
+ * replaces. The build wraps every rule in `@layer shared { … }`.
48
+ */.wb-navigation-tab-item-root-5e5c3f40 {
49
+ list-style: none;
50
+ display: inline-flex;
51
+ padding-block: var(--wb-sizing-size_080) var(--wb-sizing-size_180);
52
+
53
+ &:has(a:hover) {
54
+ /* Using background token to match underline styling in Figma */
55
+ box-shadow: inset 0 calc(var(--wb-sizing-size_020) * -1) 0 0
56
+ var(--wb-semanticColor-core-background-instructive-default);
57
+ }
58
+
59
+ &:has(a:active) {
60
+ /* Using background token to match underline styling in Figma */
61
+ box-shadow: inset 0 calc(var(--wb-sizing-size_060) * -1) 0 0
62
+ var(--wb-semanticColor-core-background-instructive-default);
63
+ }
64
+
65
+ /* breakpoint.mediaQuery.mdOrLarger (min-width: breakpoint.width.mdMin) */
66
+ @media screen and (min-width: 682px) {
67
+ padding-block: var(--wb-sizing-size_200) var(--wb-sizing-size_240);
68
+ }
69
+
70
+ /* Note: The current tab item underline style is provided by
71
+ * NavigationTabs. */
72
+ &.wb-navigation-tab-item-current-5e5c3f40:has(a:hover) {
73
+ /* If it is current, remove hover underline since the tab is already
74
+ * selected. */
75
+ box-shadow: none;
76
+ }
77
+
78
+ &.wb-navigation-tab-item-current-5e5c3f40:has(a:active):not([aria-disabled="true"]) {
79
+ /* If it is current, make sure there is no box shadow */
80
+ box-shadow: none;
81
+ }
82
+
83
+ & .wb-navigation-tab-item-link-5e5c3f40 {
84
+ /* BodyText medium / medium weight — see the note above. */
85
+ font-family: var(--wb-font-family-sans);
86
+ font-size: var(--wb-font-body-size-medium);
87
+ font-weight: var(--wb-font-weight-medium);
88
+ line-height: var(--wb-font-body-lineHeight-medium);
89
+ display: flex;
90
+ margin: 0;
91
+ color: var(--wb-semanticColor-core-foreground-neutral-subtle);
92
+ padding-inline: 0;
93
+ position: relative;
94
+ white-space: nowrap;
95
+ text-decoration: none;
96
+ }
97
+
98
+ /* Declared before the hover / press rules (stylelint's
99
+ * no-descending-specificity); they only overlap on `border: none` and
100
+ * `outline: none`, so the order doesn't change the result. */
101
+ & .wb-navigation-tab-item-link-5e5c3f40:focus-visible {
102
+ border: none;
103
+ outline: none;
104
+ box-shadow:
105
+ 0 0 0 var(--wb-sizing-size_020) var(--wb-semanticColor-focus-inner),
106
+ 0 0 0 var(--wb-sizing-size_040) var(--wb-semanticColor-focus-outer);
107
+ border-radius: var(--wb-border-radius-radius_0);
108
+ }
109
+
110
+ /* NOTE: We use :not[aria-disabled] to avoid the hover styles to be
111
+ * applied when the interactive element is disabled. */
112
+ & .wb-navigation-tab-item-link-5e5c3f40:hover:not([aria-disabled="true"]) {
113
+ text-decoration: none;
114
+ border: none;
115
+ outline: none;
116
+ color: var(--wb-semanticColor-core-foreground-instructive-default);
117
+ background-color: var(--wb-semanticColor-core-transparent);
118
+ }
119
+
120
+ & .wb-navigation-tab-item-link-5e5c3f40:active:not([aria-disabled="true"]) {
121
+ text-decoration: none;
122
+ border: none;
123
+ outline: none;
124
+ color: var(--wb-semanticColor-core-foreground-instructive-default);
125
+ }
126
+
127
+ & .wb-navigation-tab-item-currentLink-5e5c3f40 {
128
+ color: var(--wb-semanticColor-core-foreground-instructive-default);
129
+ }
130
+
131
+ & .wb-navigation-tab-item-currentLink-5e5c3f40:active:not([aria-disabled="true"]) {
132
+ /* Make sure the current link doesn't change color when pressed */
133
+ color: var(--wb-semanticColor-core-foreground-instructive-default);
134
+ }
135
+ }
136
+ }
137
+
138
+ @layer shared {/**
139
+ * TabPanel styles
140
+ *
141
+ * The panel is rendered by `addStyle`, which ships no class of its own, so
142
+ * this single-class rule doesn't compete with anything else in
143
+ * `@layer shared`. The consumer's `style` still goes through Aphrodite
144
+ * (unlayered and `!important`), so it wins over this module as it did before.
145
+ * The build wraps every rule in `@layer shared { … }`.
146
+ *//*
147
+ * Cross-package focus-visible mixin.
148
+ *
149
+ * Authors include the mixin via:
150
+ *
151
+ * @import "@khanacademy/wonder-blocks-styles/focus-styles.css";
152
+ *
153
+ * .my-component:focus-visible {
154
+ * @apply --wb-focus-visible;
155
+ * }
156
+ *
157
+ * postcss-import resolves the @import through the workspace and
158
+ * @csstools/postcss-mixins expands the @apply at build time
159
+ * (CSS Mixins Level 1 syntax — note the leading `--` on the name).
160
+ */.wb-tab-panel-tabPanel-fc2d02ef {
161
+ /* Apply flex so that panel supports rtl */
162
+ display: flex;
163
+
164
+ &:focus-visible {
165
+ box-shadow: 0 0 0 var(--wb-border-width-medium)
166
+ var(--wb-semanticColor-focus-inner);
167
+ outline: var(--wb-border-width-medium) solid
168
+ var(--wb-semanticColor-focus-outer);
169
+ outline-offset: var(--wb-border-width-medium);
170
+ }
171
+ }
172
+ }
173
+
174
+ @layer shared {/**
175
+ * Tablist styles
176
+ *
177
+ * The tablist is rendered by `addStyle`, which ships no class of its own, so
178
+ * this single-class rule doesn't compete with anything else in
179
+ * `@layer shared`. The consumer's `style` still goes through Aphrodite
180
+ * (unlayered and `!important`), so it wins over this module as it did before.
181
+ * The build wraps every rule in `@layer shared { … }`.
182
+ */.wb-tablist-tablist-c7032ebd {
183
+ display: flex;
184
+ gap: var(--wb-sizing-size_240);
185
+ border-block-end: var(--wb-border-width-thin) solid
186
+ var(--wb-semanticColor-core-border-neutral-subtle);
187
+
188
+ /* Add horizontal padding for focus outline of first/last elements */
189
+ padding-inline: var(--wb-sizing-size_040);
190
+ }
191
+ }
192
+
193
+ @layer shared {/**
194
+ * Tabs styles
195
+ *
196
+ * Both elements are rendered by `addStyle`, which ships no class of its own,
197
+ * so these single-class rules don't compete with anything else in
198
+ * `@layer shared`. The consumer's `styles.root` still goes through Aphrodite
199
+ * (unlayered and `!important`), so it wins over this module as it did before.
200
+ * The build wraps every rule in `@layer shared { … }`.
201
+ */.wb-tabs-tabs-25865423 {
202
+ display: inline-flex;
203
+ flex-direction: column;
204
+ align-items: stretch;
205
+ position: relative;
206
+ }.wb-tabs-tablistWrapper-25865423 {
207
+ position: relative;
208
+ overflow-x: auto;
209
+ flex-shrink: 0;
210
+ }
211
+ }
212
+
213
+ @layer shared {/**
214
+ * Tab styles
215
+ *
216
+ * Every rule is nested inside `.root` — a marker class on the tab button
217
+ * itself, which carries no declarations of its own. The button also gets the
218
+ * typography classes (`typographyClassNames.BodyTextMediumMediumWeight`), which
219
+ * ship single-class rules in the same `@layer shared` — including `display`
220
+ * and `margin`, both of which this component overrides. At equal specificity
221
+ * stylesheet load order would decide the winner, so the compound selector
222
+ * makes it depend on specificity instead.
223
+ *
224
+ * The consumer's `style` still goes through Aphrodite (unlayered and
225
+ * `!important`), so it wins over this module as it did before. Nesting is
226
+ * native CSS: every `&` is explicit and resolves to the flat selector it
227
+ * replaces (`.root.tab`, `.root.tab::after`, …). The build wraps every rule in
228
+ * `@layer shared { … }`.
229
+ *//*
230
+ * Cross-package focus-visible mixin.
231
+ *
232
+ * Authors include the mixin via:
233
+ *
234
+ * @import "@khanacademy/wonder-blocks-styles/focus-styles.css";
235
+ *
236
+ * .my-component:focus-visible {
237
+ * @apply --wb-focus-visible;
238
+ * }
239
+ *
240
+ * postcss-import resolves the @import through the workspace and
241
+ * @csstools/postcss-mixins expands the @apply at build time
242
+ * (CSS Mixins Level 1 syntax — note the leading `--` on the name).
243
+ */.wb-tab-root-d9dd5f00 {
244
+ &.wb-tab-tab-d9dd5f00 {
245
+ display: flex;
246
+ align-items: center;
247
+ text-wrap: nowrap;
248
+ background-color: var(--wb-semanticColor-core-transparent);
249
+ border: none;
250
+ margin: 0;
251
+ padding: 0;
252
+ cursor: pointer;
253
+ margin-block: var(--wb-sizing-size_080) var(--wb-sizing-size_140);
254
+ gap: var(--wb-sizing-size_080);
255
+ position: relative;
256
+ color: var(--wb-semanticColor-core-foreground-neutral-subtle);
257
+ }
258
+
259
+ &.wb-tab-tab-d9dd5f00:focus-visible {
260
+ box-shadow: 0 0 0 var(--wb-border-width-medium)
261
+ var(--wb-semanticColor-focus-inner);
262
+ outline: var(--wb-border-width-medium) solid
263
+ var(--wb-semanticColor-focus-outer);
264
+ outline-offset: var(--wb-border-width-medium);
265
+ }
266
+
267
+ /* Using ::after styling to apply the hover/pressed underline styling
268
+ * instead of box-shadow because we use box-shadow for the focus
269
+ * outline. */
270
+ &.wb-tab-tab-d9dd5f00::after {
271
+ content: "";
272
+ position: absolute;
273
+ inset-inline: 0;
274
+ inset-block-end: calc(var(--wb-sizing-size_140) * -1);
275
+ }
276
+
277
+ /* Only apply hover styles to tabs that are not selected */
278
+ &.wb-tab-tab-d9dd5f00:hover:not([aria-selected="true"]) {
279
+ color: var(--wb-semanticColor-core-foreground-instructive-default);
280
+
281
+ &::after {
282
+ block-size: var(--wb-border-width-thin);
283
+ background-color: var(
284
+ --wb-semanticColor-core-background-instructive-default
285
+ );
286
+ }
287
+ }
288
+
289
+ /* Only apply active styles to tabs that are not selected */
290
+ &.wb-tab-tab-d9dd5f00:active:not([aria-selected="true"]) {
291
+ color: var(--wb-semanticColor-core-foreground-instructive-default);
292
+
293
+ &::after {
294
+ block-size: var(--wb-border-width-thick);
295
+ background-color: var(
296
+ --wb-semanticColor-core-background-instructive-default
297
+ );
298
+ }
299
+ }
300
+
301
+ &.wb-tab-selectedTab-d9dd5f00 {
302
+ color: var(--wb-semanticColor-core-foreground-instructive-default);
303
+ }
304
+ }
305
+ }
306
+
307
+ @layer shared {/**
308
+ * TabsDropdown styles
309
+ *
310
+ * Every rule is nested inside `.root` — a marker class on the component's root
311
+ * `View`, which carries no declarations of its own. The rules override
312
+ * classes from other packages: `.actionMenu` lands on DropdownCore's
313
+ * `.menuWrapper` `View` (`inline-size`, `align-items`), and `.opener` /
314
+ * `.label` land on `Button` and its `BodyText` label (`block-size`,
315
+ * `padding`). The published bundle loads this package's CSS before its
316
+ * dependencies', so at equal specificity those rules would win. The
317
+ * descendant selectors (0,2,0) make the result depend on specificity instead.
318
+ *
319
+ * The consumer's `styles.*` still go through Aphrodite (unlayered and
320
+ * `!important`) or inline styles, so they win over this module as they did
321
+ * before. The build wraps every rule in `@layer shared { … }`.
322
+ */.wb-tabs-dropdown-root-d707dbaa {
323
+ .wb-tabs-dropdown-actionMenu-d707dbaa {
324
+ inline-size: 100%;
325
+ align-items: flex-start;
326
+ border-block-end: var(--wb-border-width-thin) solid
327
+ var(--wb-semanticColor-core-border-neutral-subtle);
328
+ }
329
+
330
+ .wb-tabs-dropdown-opener-d707dbaa {
331
+ position: relative;
332
+ block-size: unset;
333
+ padding-block: var(--wb-sizing-size_120) var(--wb-sizing-size_140);
334
+ padding-inline: var(--wb-sizing-size_180);
335
+ inline-size: 100%;
336
+ justify-content: space-between;
337
+ gap: var(--wb-sizing-size_020);
338
+ }
339
+
340
+ .wb-tabs-dropdown-label-d707dbaa {
341
+ flex-grow: 1;
342
+ max-inline-size: 100%;
343
+ text-align: start;
344
+ }
345
+ }
346
+ }
347
+
348
+ @layer shared {/**
349
+ * NavigationTabsDropdown styles
350
+ *
351
+ * The root element is rendered by `addStyle`, which ships no class of its own,
352
+ * so `.divider` needs no extra specificity.
353
+ *
354
+ * Every other rule is nested inside `.root` — a marker class on that root
355
+ * element, which carries no declarations of its own. Those rules override
356
+ * classes from other packages: `.actionMenu` lands on DropdownCore's
357
+ * `.menuWrapper` `View` (`inline-size`, `align-items`), and `.opener` /
358
+ * `.label` land on `Button` and its `BodyText` label (`block-size`,
359
+ * `padding`). The published bundle loads this package's CSS before its
360
+ * dependencies', so at equal specificity those rules would win. The
361
+ * descendant selectors (0,2,0) make the result depend on specificity instead.
362
+ *
363
+ * The consumer's `styles.*` still go through Aphrodite (unlayered and
364
+ * `!important`) or inline styles, so they win over this module as they did
365
+ * before. The build wraps every rule in `@layer shared { … }`.
366
+ */.wb-navigation-tabs-dropdown-divider-72fea2cc {
367
+ border-block-end: var(--wb-border-width-thin) solid
368
+ var(--wb-semanticColor-core-border-neutral-subtle);
369
+ }.wb-navigation-tabs-dropdown-root-72fea2cc {
370
+ .wb-navigation-tabs-dropdown-actionMenu-72fea2cc {
371
+ inline-size: 100%;
372
+ align-items: flex-start;
373
+ }
374
+
375
+ .wb-navigation-tabs-dropdown-opener-72fea2cc {
376
+ position: relative;
377
+ block-size: unset;
378
+ padding-block: var(--wb-sizing-size_120) var(--wb-sizing-size_140);
379
+ padding-inline: var(--wb-sizing-size_180);
380
+ inline-size: 100%;
381
+ justify-content: space-between;
382
+ gap: var(--wb-sizing-size_020);
383
+ }
384
+
385
+ .wb-navigation-tabs-dropdown-label-72fea2cc {
386
+ flex-grow: 1;
387
+ max-inline-size: 100%;
388
+ text-align: start;
389
+ }
390
+ }
391
+ }
392
+
393
+ @layer shared {/**
394
+ * Shared styles for `ResponsiveTabs` and `ResponsiveNavigationTabs`
395
+ *
396
+ * Every rule is nested inside `.root` — the marker class on the container,
397
+ * which carries no declarations of its own — because the container is a
398
+ * `View`, and this component overrides `View`'s `min-block-size` in the same
399
+ * `@layer shared`. At equal specificity stylesheet load order would decide the
400
+ * winner, so the compound selector makes it depend on specificity instead.
401
+ *
402
+ * `fadeIn` is applied to the tabs / dropdown rendered inside (through their
403
+ * `styles.root`), not to the container. CSS Modules scopes the keyframes name
404
+ * to this file. The build wraps every rule in `@layer shared { … }`.
405
+ */@keyframes wb-responsive-fade-in-1929a67f {
406
+ from {
407
+ opacity: 0;
408
+ }
409
+
410
+ to {
411
+ opacity: 1;
412
+ }
413
+ }.wb-responsive-root-1929a67f {
414
+ &.wb-responsive-container-1929a67f {
415
+ inline-size: 100%;
416
+
417
+ /* override setting the min height: 0 style */
418
+ min-block-size: auto;
419
+ }
420
+ }/* Apply fade in animation to the tabs and the dropdown to ease into the
421
+ * transition between the two layouts. Since this is a fade animation to
422
+ * smoothen the transition, we apply it always, even if prefers reduced motion
423
+ * is enabled */.wb-responsive-fadeIn-1929a67f {
424
+ animation-name: wb-responsive-fade-in-1929a67f;
425
+ animation-duration: 150ms;
426
+ animation-timing-function: ease-in-out;
427
+ }
428
+ }
429
+
430
+ /*# sourceMappingURL=index.css.map */
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["<no source>","../../src/components/navigation-tabs.module.css","../../src/components/navigation-tab-item.module.css","../../src/components/tab-panel.module.css","../../../wonder-blocks-styles/src/styles/focus-styles.css","../../src/components/tablist.module.css","../../src/components/tabs.module.css","../../src/components/tab.module.css","../../src/components/tabs-dropdown.module.css","../../src/components/navigation-tabs-dropdown.module.css","../../src/components/responsive.module.css"],"names":[],"mappings":"AAAA,eCAA;;;;;;;;EAQE,CAEF;IACI,gBAAgB;AACpB,CAEA;IACI,kBAAkB;AACtB,CAEA;IACI,oEAAoE;IACpE,yCAAyC;IACzC,sCAAsC;IACtC,+BAA+B;IAC/B,aAAa;IACb,8BAA8B;IAC9B,iBAAiB;AACrB,CAEA;IACI;0DACsD;AAC1D;CD/BA;;AAAA,eEAA;;;;;;;;;;;;;;;;;;;;;EAqBE,CAEF;IACI,gBAAgB;IAChB,oBAAoB;IACpB,kEAAkE;;IAElE;QACI,+DAA+D;QAC/D;uEAC+D;IACnE;;IAEA;QACI,+DAA+D;QAC/D;uEAC+D;IACnE;;IAEA,yEAAyE;IACzE;QACI,kEAAkE;IACtE;;IAEA;wBACoB;IACpB;QACI;sBACc;QACd,gBAAgB;IACpB;;IAEA;QACI,uDAAuD;QACvD,gBAAgB;IACpB;;IAEA;QACI,0DAA0D;QAC1D,uCAAuC;QACvC,0CAA0C;QAC1C,yCAAyC;QACzC,kDAAkD;QAClD,aAAa;QACb,SAAS;QACT,6DAA6D;QAC7D,iBAAiB;QACjB,kBAAkB;QAClB,mBAAmB;QACnB,qBAAqB;IACzB;;IAEA;;iEAE6D;IAC7D;QACI,YAAY;QACZ,aAAa;QACb;;+EAEuE;QACvE,+CAA+C;IACnD;;IAEA;0DACsD;IACtD;QACI,qBAAqB;QACrB,YAAY;QACZ,aAAa;QACb,kEAAkE;QAClE,0DAA0D;IAC9D;;IAEA;QACI,qBAAqB;QACrB,YAAY;QACZ,aAAa;QACb,kEAAkE;IACtE;;IAEA;QACI,kEAAkE;IACtE;;IAEA;QACI,iEAAiE;QACjE,kEAAkE;IACtE;AACJ;CF9GA;;AAAA,eGAA;;;;;;;;EAQE,CCRF;;;;;;;;;;;;;;EAcE,CDFF;IACI,0CAA0C;IAC1C,aAAa;;IAEb;ICAA;2CACuC;IACvC;2CACuC;IACvC,6CAA6C;IDF7C;AACJ;CHnBA;;AAAA,eKAA;;;;;;;;EAQE,CAEF;IACI,aAAa;IACb,8BAA8B;IAC9B;0DACsD;;IAEtD,oEAAoE;IACpE,yCAAyC;AAC7C;CLlBA;;AAAA,eMAA;;;;;;;;EAQE,CAEF;IACI,oBAAoB;IACpB,sBAAsB;IACtB,oBAAoB;IACpB,kBAAkB;AACtB,CAEA;IACI,kBAAkB;IAClB,gBAAgB;IAChB,cAAc;AAClB;CNrBA;;AAAA,eOAA;;;;;;;;;;;;;;;;EAgBE,CHhBF;;;;;;;;;;;;;;EAcE,CGMF;IACI;QACI,aAAa;QACb,mBAAmB;QACnB,iBAAiB;QACjB,0DAA0D;QAC1D,YAAY;QACZ,SAAS;QACT,UAAU;QACV,eAAe;QACf,iEAAiE;QACjE,8BAA8B;QAC9B,kBAAkB;QAClB,6DAA6D;IACjE;;IAEA;IHpBA;2CACuC;IACvC;2CACuC;IACvC,6CAA6C;IGkB7C;;IAEA;;iBAEa;IACb;QACI,WAAW;QACX,kBAAkB;QAClB,eAAe;QACf,qDAAqD;IACzD;;IAEA,0DAA0D;IAC1D;QACI,kEAAkE;;QAElE;YACI,uCAAuC;YACvC;;aAEC;QACL;IACJ;;IAEA,2DAA2D;IAC3D;QACI,kEAAkE;;QAElE;YACI,wCAAwC;YACxC;;aAEC;QACL;IACJ;;IAEA;QACI,kEAAkE;IACtE;AACJ;CP7EA;;AAAA,eQAA;;;;;;;;;;;;;;;EAeE,CAEF;IACI;QACI,iBAAiB;QACjB,uBAAuB;QACvB;8DACsD;IAC1D;;IAEA;QACI,kBAAkB;QAClB,iBAAiB;QACjB,kEAAkE;QAClE,yCAAyC;QACzC,iBAAiB;QACjB,8BAA8B;QAC9B,8BAA8B;IAClC;;IAEA;QACI,YAAY;QACZ,qBAAqB;QACrB,iBAAiB;IACrB;AACJ;CRxCA;;AAAA,eSAA;;;;;;;;;;;;;;;;;;EAkBE,CAEF;IACI;0DACsD;AAC1D,CAEA;IACI;QACI,iBAAiB;QACjB,uBAAuB;IAC3B;;IAEA;QACI,kBAAkB;QAClB,iBAAiB;QACjB,kEAAkE;QAClE,yCAAyC;QACzC,iBAAiB;QACjB,8BAA8B;QAC9B,8BAA8B;IAClC;;IAEA;QACI,YAAY;QACZ,qBAAqB;QACrB,iBAAiB;IACrB;AACJ;CT9CA;;AAAA,eUAA;;;;;;;;;;;;EAYE,CAEF;IACI;QACI,UAAU;IACd;;IAEA;QACI,UAAU;IACd;AACJ,CAEA;IACI;QACI,iBAAiB;;QAEjB,6CAA6C;QAC7C,oBAAoB;IACxB;AACJ,CAEA;;;eAGe,CACf;IACI,8CAAuB;IACvB,yBAAyB;IACzB,sCAAsC;AAC1C;CVzCA","file":"index.css","sourcesContent":[null,"/**\n * NavigationTabs styles\n *\n * Every element is rendered by `addStyle`, which ships no class of its own, so\n * these single-class rules don't compete with anything else in\n * `@layer shared`. The consumer's `styles.*` still go through Aphrodite\n * (unlayered and `!important`), so they win over this module as they did\n * before. The build wraps every rule in `@layer shared { … }`.\n */\n\n.nav {\n overflow-x: auto;\n}\n\n.contents {\n position: relative;\n}\n\n.list {\n /* Add horizontal padding for focus outline of first/last elements */\n padding-inline: var(--wb-sizing-size_040);\n padding-block: var(--wb-sizing-size_0);\n margin: var(--wb-sizing-size_0);\n display: flex;\n gap: var(--wb-sizing-size_160);\n flex-wrap: nowrap;\n}\n\n.divider {\n border-block-end: var(--wb-border-width-thin) solid\n var(--wb-semanticColor-core-border-neutral-subtle);\n}\n","/**\n * NavigationTabItem styles\n *\n * `.root` is the list item (rendered by `addStyle`, no class of its own). The\n * link rules style the item's child — usually a Wonder Blocks `Link` — whose\n * own rules sit in the same `@layer shared`. Which package's stylesheet comes\n * first depends on the consumer's bundler and import order, so the link rules\n * are nested inside `.root` to outrank `Link`'s on specificity alone:\n * `Link`'s base classes are (0,1,0) and its states (0,2,0); the rules below\n * are (0,2,0) for the base and (0,3,0)+ for states.\n *\n * The link rule also declares the BodyText medium typography itself rather\n * than applying the typography classes: those are (0,1,0), the same as\n * `Link`'s `font-family` / `font-weight` (bold in thunderblocks), so the winner\n * would depend on load order; and the Aphrodite typography object would beat\n * this rule's `display: flex`.\n *\n * The consumer's `style` still goes through Aphrodite (unlayered and\n * `!important`), so it wins over this module as it did before. Nesting is\n * native CSS: every `&` is explicit and resolves to the flat selector it\n * replaces. The build wraps every rule in `@layer shared { … }`.\n */\n\n.root {\n list-style: none;\n display: inline-flex;\n padding-block: var(--wb-sizing-size_080) var(--wb-sizing-size_180);\n\n &:has(a:hover) {\n /* Using background token to match underline styling in Figma */\n box-shadow: inset 0 calc(var(--wb-sizing-size_020) * -1) 0 0\n var(--wb-semanticColor-core-background-instructive-default);\n }\n\n &:has(a:active) {\n /* Using background token to match underline styling in Figma */\n box-shadow: inset 0 calc(var(--wb-sizing-size_060) * -1) 0 0\n var(--wb-semanticColor-core-background-instructive-default);\n }\n\n /* breakpoint.mediaQuery.mdOrLarger (min-width: breakpoint.width.mdMin) */\n @media (--wb-breakpoint-mediaQuery-mdOrLarger) {\n padding-block: var(--wb-sizing-size_200) var(--wb-sizing-size_240);\n }\n\n /* Note: The current tab item underline style is provided by\n * NavigationTabs. */\n &.current:has(a:hover) {\n /* If it is current, remove hover underline since the tab is already\n * selected. */\n box-shadow: none;\n }\n\n &.current:has(a:active):not([aria-disabled=\"true\"]) {\n /* If it is current, make sure there is no box shadow */\n box-shadow: none;\n }\n\n & .link {\n /* BodyText medium / medium weight — see the note above. */\n font-family: var(--wb-font-family-sans);\n font-size: var(--wb-font-body-size-medium);\n font-weight: var(--wb-font-weight-medium);\n line-height: var(--wb-font-body-lineHeight-medium);\n display: flex;\n margin: 0;\n color: var(--wb-semanticColor-core-foreground-neutral-subtle);\n padding-inline: 0;\n position: relative;\n white-space: nowrap;\n text-decoration: none;\n }\n\n /* Declared before the hover / press rules (stylelint's\n * no-descending-specificity); they only overlap on `border: none` and\n * `outline: none`, so the order doesn't change the result. */\n & .link:focus-visible {\n border: none;\n outline: none;\n box-shadow:\n 0 0 0 var(--wb-sizing-size_020) var(--wb-semanticColor-focus-inner),\n 0 0 0 var(--wb-sizing-size_040) var(--wb-semanticColor-focus-outer);\n border-radius: var(--wb-border-radius-radius_0);\n }\n\n /* NOTE: We use :not[aria-disabled] to avoid the hover styles to be\n * applied when the interactive element is disabled. */\n & .link:hover:not([aria-disabled=\"true\"]) {\n text-decoration: none;\n border: none;\n outline: none;\n color: var(--wb-semanticColor-core-foreground-instructive-default);\n background-color: var(--wb-semanticColor-core-transparent);\n }\n\n & .link:active:not([aria-disabled=\"true\"]) {\n text-decoration: none;\n border: none;\n outline: none;\n color: var(--wb-semanticColor-core-foreground-instructive-default);\n }\n\n & .currentLink {\n color: var(--wb-semanticColor-core-foreground-instructive-default);\n }\n\n & .currentLink:active:not([aria-disabled=\"true\"]) {\n /* Make sure the current link doesn't change color when pressed */\n color: var(--wb-semanticColor-core-foreground-instructive-default);\n }\n}\n","/**\n * TabPanel styles\n *\n * The panel is rendered by `addStyle`, which ships no class of its own, so\n * this single-class rule doesn't compete with anything else in\n * `@layer shared`. The consumer's `style` still goes through Aphrodite\n * (unlayered and `!important`), so it wins over this module as it did before.\n * The build wraps every rule in `@layer shared { … }`.\n */\n\n@import \"@khanacademy/wonder-blocks-styles/focus-styles.css\";\n\n.tabPanel {\n /* Apply flex so that panel supports rtl */\n display: flex;\n\n &:focus-visible {\n @apply --wb-focus-visible;\n }\n}\n","/*\n * Cross-package focus-visible mixin.\n *\n * Authors include the mixin via:\n *\n * @import \"@khanacademy/wonder-blocks-styles/focus-styles.css\";\n *\n * .my-component:focus-visible {\n * @apply --wb-focus-visible;\n * }\n *\n * postcss-import resolves the @import through the workspace and\n * @csstools/postcss-mixins expands the @apply at build time\n * (CSS Mixins Level 1 syntax — note the leading `--` on the name).\n */\n@mixin --wb-focus-visible() {\n box-shadow: 0 0 0 var(--wb-border-width-medium)\n var(--wb-semanticColor-focus-inner);\n outline: var(--wb-border-width-medium) solid\n var(--wb-semanticColor-focus-outer);\n outline-offset: var(--wb-border-width-medium);\n}\n","/**\n * Tablist styles\n *\n * The tablist is rendered by `addStyle`, which ships no class of its own, so\n * this single-class rule doesn't compete with anything else in\n * `@layer shared`. The consumer's `style` still goes through Aphrodite\n * (unlayered and `!important`), so it wins over this module as it did before.\n * The build wraps every rule in `@layer shared { … }`.\n */\n\n.tablist {\n display: flex;\n gap: var(--wb-sizing-size_240);\n border-block-end: var(--wb-border-width-thin) solid\n var(--wb-semanticColor-core-border-neutral-subtle);\n\n /* Add horizontal padding for focus outline of first/last elements */\n padding-inline: var(--wb-sizing-size_040);\n}\n","/**\n * Tabs styles\n *\n * Both elements are rendered by `addStyle`, which ships no class of its own,\n * so these single-class rules don't compete with anything else in\n * `@layer shared`. The consumer's `styles.root` still goes through Aphrodite\n * (unlayered and `!important`), so it wins over this module as it did before.\n * The build wraps every rule in `@layer shared { … }`.\n */\n\n.tabs {\n display: inline-flex;\n flex-direction: column;\n align-items: stretch;\n position: relative;\n}\n\n.tablistWrapper {\n position: relative;\n overflow-x: auto;\n flex-shrink: 0;\n}\n","/**\n * Tab styles\n *\n * Every rule is nested inside `.root` — a marker class on the tab button\n * itself, which carries no declarations of its own. The button also gets the\n * typography classes (`typographyClassNames.BodyTextMediumMediumWeight`), which\n * ship single-class rules in the same `@layer shared` — including `display`\n * and `margin`, both of which this component overrides. At equal specificity\n * stylesheet load order would decide the winner, so the compound selector\n * makes it depend on specificity instead.\n *\n * The consumer's `style` still goes through Aphrodite (unlayered and\n * `!important`), so it wins over this module as it did before. Nesting is\n * native CSS: every `&` is explicit and resolves to the flat selector it\n * replaces (`.root.tab`, `.root.tab::after`, …). The build wraps every rule in\n * `@layer shared { … }`.\n */\n\n@import \"@khanacademy/wonder-blocks-styles/focus-styles.css\";\n\n.root {\n &.tab {\n display: flex;\n align-items: center;\n text-wrap: nowrap;\n background-color: var(--wb-semanticColor-core-transparent);\n border: none;\n margin: 0;\n padding: 0;\n cursor: pointer;\n margin-block: var(--wb-sizing-size_080) var(--wb-sizing-size_140);\n gap: var(--wb-sizing-size_080);\n position: relative;\n color: var(--wb-semanticColor-core-foreground-neutral-subtle);\n }\n\n &.tab:focus-visible {\n @apply --wb-focus-visible;\n }\n\n /* Using ::after styling to apply the hover/pressed underline styling\n * instead of box-shadow because we use box-shadow for the focus\n * outline. */\n &.tab::after {\n content: \"\";\n position: absolute;\n inset-inline: 0;\n inset-block-end: calc(var(--wb-sizing-size_140) * -1);\n }\n\n /* Only apply hover styles to tabs that are not selected */\n &.tab:hover:not([aria-selected=\"true\"]) {\n color: var(--wb-semanticColor-core-foreground-instructive-default);\n\n &::after {\n block-size: var(--wb-border-width-thin);\n background-color: var(\n --wb-semanticColor-core-background-instructive-default\n );\n }\n }\n\n /* Only apply active styles to tabs that are not selected */\n &.tab:active:not([aria-selected=\"true\"]) {\n color: var(--wb-semanticColor-core-foreground-instructive-default);\n\n &::after {\n block-size: var(--wb-border-width-thick);\n background-color: var(\n --wb-semanticColor-core-background-instructive-default\n );\n }\n }\n\n &.selectedTab {\n color: var(--wb-semanticColor-core-foreground-instructive-default);\n }\n}\n","/**\n * TabsDropdown styles\n *\n * Every rule is nested inside `.root` — a marker class on the component's root\n * `View`, which carries no declarations of its own. The rules override\n * classes from other packages: `.actionMenu` lands on DropdownCore's\n * `.menuWrapper` `View` (`inline-size`, `align-items`), and `.opener` /\n * `.label` land on `Button` and its `BodyText` label (`block-size`,\n * `padding`). The published bundle loads this package's CSS before its\n * dependencies', so at equal specificity those rules would win. The\n * descendant selectors (0,2,0) make the result depend on specificity instead.\n *\n * The consumer's `styles.*` still go through Aphrodite (unlayered and\n * `!important`) or inline styles, so they win over this module as they did\n * before. The build wraps every rule in `@layer shared { … }`.\n */\n\n.root {\n .actionMenu {\n inline-size: 100%;\n align-items: flex-start;\n border-block-end: var(--wb-border-width-thin) solid\n var(--wb-semanticColor-core-border-neutral-subtle);\n }\n\n .opener {\n position: relative;\n block-size: unset;\n padding-block: var(--wb-sizing-size_120) var(--wb-sizing-size_140);\n padding-inline: var(--wb-sizing-size_180);\n inline-size: 100%;\n justify-content: space-between;\n gap: var(--wb-sizing-size_020);\n }\n\n .label {\n flex-grow: 1;\n max-inline-size: 100%;\n text-align: start;\n }\n}\n","/**\n * NavigationTabsDropdown styles\n *\n * The root element is rendered by `addStyle`, which ships no class of its own,\n * so `.divider` needs no extra specificity.\n *\n * Every other rule is nested inside `.root` — a marker class on that root\n * element, which carries no declarations of its own. Those rules override\n * classes from other packages: `.actionMenu` lands on DropdownCore's\n * `.menuWrapper` `View` (`inline-size`, `align-items`), and `.opener` /\n * `.label` land on `Button` and its `BodyText` label (`block-size`,\n * `padding`). The published bundle loads this package's CSS before its\n * dependencies', so at equal specificity those rules would win. The\n * descendant selectors (0,2,0) make the result depend on specificity instead.\n *\n * The consumer's `styles.*` still go through Aphrodite (unlayered and\n * `!important`) or inline styles, so they win over this module as they did\n * before. The build wraps every rule in `@layer shared { … }`.\n */\n\n.divider {\n border-block-end: var(--wb-border-width-thin) solid\n var(--wb-semanticColor-core-border-neutral-subtle);\n}\n\n.root {\n .actionMenu {\n inline-size: 100%;\n align-items: flex-start;\n }\n\n .opener {\n position: relative;\n block-size: unset;\n padding-block: var(--wb-sizing-size_120) var(--wb-sizing-size_140);\n padding-inline: var(--wb-sizing-size_180);\n inline-size: 100%;\n justify-content: space-between;\n gap: var(--wb-sizing-size_020);\n }\n\n .label {\n flex-grow: 1;\n max-inline-size: 100%;\n text-align: start;\n }\n}\n","/**\n * Shared styles for `ResponsiveTabs` and `ResponsiveNavigationTabs`\n *\n * Every rule is nested inside `.root` — the marker class on the container,\n * which carries no declarations of its own — because the container is a\n * `View`, and this component overrides `View`'s `min-block-size` in the same\n * `@layer shared`. At equal specificity stylesheet load order would decide the\n * winner, so the compound selector makes it depend on specificity instead.\n *\n * `fadeIn` is applied to the tabs / dropdown rendered inside (through their\n * `styles.root`), not to the container. CSS Modules scopes the keyframes name\n * to this file. The build wraps every rule in `@layer shared { … }`.\n */\n\n@keyframes fade-in {\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n}\n\n.root {\n &.container {\n inline-size: 100%;\n\n /* override setting the min height: 0 style */\n min-block-size: auto;\n }\n}\n\n/* Apply fade in animation to the tabs and the dropdown to ease into the\n * transition between the two layouts. Since this is a fade animation to\n * smoothen the transition, we apply it always, even if prefers reduced motion\n * is enabled */\n.fadeIn {\n animation-name: fade-in;\n animation-duration: 150ms;\n animation-timing-function: ease-in-out;\n}\n"]}