@stackoverflow/stacks 2.7.3 → 2.7.5

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.
Files changed (85) hide show
  1. package/LICENSE.MD +9 -9
  2. package/README.md +158 -180
  3. package/dist/css/stacks.css +20 -13
  4. package/dist/css/stacks.min.css +1 -1
  5. package/dist/js/stacks.min.js +1 -1
  6. package/lib/atomic/border.less +139 -139
  7. package/lib/atomic/color.less +36 -36
  8. package/lib/atomic/flex.less +426 -426
  9. package/lib/atomic/gap.less +44 -44
  10. package/lib/atomic/grid.less +139 -139
  11. package/lib/atomic/misc.less +374 -374
  12. package/lib/atomic/spacing.less +98 -98
  13. package/lib/atomic/typography.less +266 -264
  14. package/lib/atomic/width-height.less +194 -194
  15. package/lib/base/body.less +44 -44
  16. package/lib/base/configuration-static.less +61 -61
  17. package/lib/base/fieldset.less +5 -5
  18. package/lib/base/icon.less +11 -11
  19. package/lib/base/internal.less +220 -220
  20. package/lib/base/reset-meyer.less +64 -64
  21. package/lib/base/reset-normalize.less +449 -449
  22. package/lib/base/reset.less +20 -20
  23. package/lib/components/activity-indicator/activity-indicator.less +53 -53
  24. package/lib/components/avatar/avatar.less +108 -108
  25. package/lib/components/award-bling/award-bling.less +31 -31
  26. package/lib/components/banner/banner.less +44 -44
  27. package/lib/components/banner/banner.ts +149 -149
  28. package/lib/components/block-link/block-link.less +82 -82
  29. package/lib/components/breadcrumbs/breadcrumbs.less +41 -41
  30. package/lib/components/button-group/button-group.less +82 -82
  31. package/lib/components/card/card.less +37 -37
  32. package/lib/components/check-control/check-control.less +17 -17
  33. package/lib/components/check-group/check-group.less +19 -19
  34. package/lib/components/checkbox_radio/checkbox_radio.less +159 -159
  35. package/lib/components/code-block/code-block.fixtures.ts +88 -88
  36. package/lib/components/code-block/code-block.less +116 -116
  37. package/lib/components/description/description.less +9 -9
  38. package/lib/components/empty-state/empty-state.less +16 -16
  39. package/lib/components/expandable/expandable.less +118 -118
  40. package/lib/components/input-fill/input-fill.less +35 -35
  41. package/lib/components/input-icon/input-icon.less +45 -45
  42. package/lib/components/input-message/input-message.less +49 -49
  43. package/lib/components/input_textarea/input_textarea.less +2 -7
  44. package/lib/components/label/label.less +116 -110
  45. package/lib/components/link-preview/link-preview.less +148 -148
  46. package/lib/components/menu/menu.less +41 -41
  47. package/lib/components/modal/modal.less +118 -118
  48. package/lib/components/modal/modal.ts +383 -383
  49. package/lib/components/navigation/navigation.less +136 -136
  50. package/lib/components/navigation/navigation.ts +128 -128
  51. package/lib/components/page-title/page-title.less +51 -51
  52. package/lib/components/popover/popover.less +159 -159
  53. package/lib/components/popover/popover.ts +651 -651
  54. package/lib/components/post-summary/post-summary.less +457 -457
  55. package/lib/components/progress-bar/progress-bar.less +291 -291
  56. package/lib/components/prose/prose.less +452 -452
  57. package/lib/components/select/select.less +138 -138
  58. package/lib/components/spinner/spinner.less +103 -103
  59. package/lib/components/table/table.ts +296 -296
  60. package/lib/components/table-container/table-container.less +4 -4
  61. package/lib/components/tag/tag.less +186 -186
  62. package/lib/components/toast/toast.less +35 -35
  63. package/lib/components/toast/toast.ts +357 -357
  64. package/lib/components/toggle-switch/toggle-switch.less +104 -104
  65. package/lib/components/topbar/topbar.less +553 -553
  66. package/lib/components/uploader/uploader.less +205 -205
  67. package/lib/components/user-card/user-card.less +129 -129
  68. package/lib/controllers.ts +33 -33
  69. package/lib/exports/color-mixins.less +283 -283
  70. package/lib/exports/constants-helpers.less +108 -108
  71. package/lib/exports/constants-type.less +155 -155
  72. package/lib/exports/exports.less +15 -15
  73. package/lib/exports/mixins.less +334 -333
  74. package/lib/exports/spacing-mixins.less +67 -67
  75. package/lib/index.ts +32 -32
  76. package/lib/input-utils.less +41 -41
  77. package/lib/stacks-dynamic.less +24 -24
  78. package/lib/stacks-static.less +93 -93
  79. package/lib/stacks.less +13 -13
  80. package/lib/test/assertions.ts +36 -36
  81. package/lib/test/less-test-utils.ts +28 -28
  82. package/lib/test/open-wc-testing-patch.d.ts +26 -26
  83. package/lib/tsconfig.build.json +4 -4
  84. package/lib/tsconfig.json +17 -17
  85. package/package.json +27 -23
package/LICENSE.MD CHANGED
@@ -1,9 +1,9 @@
1
- The MIT License (MIT)
2
-
3
- Copyright 2017-2024 Stack Exchange Inc.
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
-
7
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
-
9
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1
+ The MIT License (MIT)
2
+
3
+ Copyright 2017-2024 Stack Exchange Inc.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md CHANGED
@@ -1,180 +1,158 @@
1
- # Stacks
2
-
3
- [![ci status][gh-action-badge]][gh-action-url] [![npm version][npm-badge]][npm-url]
4
-
5
- Stacks is Stack Overflow’s design system. It includes the resources needed to create consistent, predictable interfaces and workflows that conform to Stack Overflow’s principles, design language, and best practices.
6
-
7
- Our documentation is built with Stacks itself, using its [immutable, atomic classes](http://johnpolacek.com/rethinking/) and components.
8
-
9
- The Stacks website documents:
10
-
11
- ### Product
12
- - Semantic and accessible component markup
13
- - Cross-browser compatible Less / CSS
14
- - An [icon library](https://github.com/StackExchange/Stacks-Icons)
15
-
16
- ### Email
17
- - Email templates & components
18
-
19
- Stacks documentation can be found at https://stackoverflow.design/
20
-
21
- ## Table of contents
22
-
23
- - [Using Stacks](#using-stacks)
24
- - [Migrating from v1 to v2](#migrating-from-v1-to-v2)
25
- - [Building Stacks](#building-stacks)
26
- - [Format Stacks](#format-stacks)
27
- - [Linting Stacks](#linting-stacks)
28
- - [Testing Stacks](#testing-stacks)
29
- - [Releasing Stacks](#releasing-a-new-version-of-stacks)
30
- - [Bugs and feature requests](#bugs-and-feature-requests)
31
- - [Contributing](#contributing)
32
- - [License](#license)
33
-
34
- ## Using Stacks
35
- Using Stacks is outlined in our [usage guidelines](https://stackoverflow.design/product/develop/using-stacks).
36
-
37
- ## Migrating from v1 to v2
38
-
39
- To migrate from Stacks v1 to v2, see our [migration guide](/MIGRATION_GUIDE.md).
40
-
41
- ## Building Stacks
42
- To contribute to Stacks documentation or its CSS library, you’ll need to build Stacks locally. View our [building guidelines](https://stackoverflow.design/product/develop/building).
43
-
44
- Having trouble getting these steps to work? Open [an issue](https://github.com/StackExchange/Stacks/issues/new) with a `setup` label.
45
-
46
- ## Format Stacks
47
-
48
- Format the source code with prettier via running:
49
- ```sh
50
- npm run format
51
- ```
52
-
53
- ## Linting Stacks
54
-
55
- Run all lint suites by running:
56
- ```sh
57
- npm run lint
58
- ```
59
-
60
- Lint the styles (stylelint) by running:
61
- ```sh
62
- npm run lint:css
63
- ```
64
- Lint the typescript source code (eslint) via running:
65
- ```sh
66
- npm run lint:ts
67
- ```
68
- Lint the source code format (prettier) via running:
69
- ```sh
70
- npm run lint:format
71
- ```
72
-
73
- ## Testing Stacks
74
-
75
- Run all test suites by running:
76
- ```sh
77
- npm test
78
- ```
79
- ### Unit/Component Tests
80
-
81
- Unit/Component tests are written with [DOM Testing Library](https://testing-library.com/docs/dom-testing-library/intro).
82
- Please follow the library's principles and documentation to write tests.
83
-
84
- Stacks uses [Web Test Runner](https://modern-web.dev/docs/test-runner/overview/) and [Playwright](https://modern-web.dev/docs/test-runner/browser-launchers/playwright/) to run tests in a real browser context.
85
-
86
- Execute the unit/component tests suite by running:
87
- ```sh
88
- npm run test:unit
89
- ```
90
- or if you prefer watch mode run:
91
- ```sh
92
- npm run test:unit:watch
93
- ```
94
-
95
- ### Visual Regression Tests
96
-
97
- **Prerequisites:**
98
- - `git lfs` ([installation docs](https://docs.github.com/en/repositories/working-with-files/managing-large-files/installing-git-large-file-storage))
99
- - `docker` ([installation docs](https://docs.docker.com/engine/install/))
100
- - `pwsh` ([Installation docs](https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell?view=powershell-7.3))
101
- - Run `git config diff.lfs.textconv cat` to make sure image diff works as expected ([More info](https://github.com/microsoft/vscode/issues/86611#issuecomment-875894108))
102
-
103
- This [Web Test Runner plugin](https://www.npmjs.com/package/@web/test-runner-visual-regression) is used to run visual regression tests.
104
- Visual regression tests end with this suffix `*.visual.test.ts`.
105
-
106
- Execute the visual regression tests suite by running:
107
- ```sh
108
- npm run test:visual
109
- ```
110
- After the first run, if there are failing snapshots, they end up overriding the baseline ones in the filesystem (e.g. `/screenshots/<browser>/baseline/<name>.png`).
111
- We do this for easier comparison of the dif directly in vscode and to make sure only the failing snapshots get regenerated (see [this GH discussion](https://github.com/modernweb-dev/web/discussions/427#discussioncomment-3543771) that inspired the approach).
112
-
113
- We also recommend to install [this vscode extension](https://marketplace.visualstudio.com/items?itemName=RayWiis.png-image-diff) for getting better diffs.
114
-
115
- ### Less Tests
116
-
117
- This is an experimental suite to test the generation of CSS from Less files.
118
- Less tests end with this suffix `*.less.test.ts`.
119
-
120
- Execute the less tests suite by running:
121
- ```sh
122
- npm run test:less
123
- ```
124
-
125
- Update the css snapshots via:
126
- ```sh
127
- npm run test:less:update
128
- ```
129
-
130
- ## Releasing a new version of Stacks
131
- Stacks uses [Semantic Versioning](https://semver.org/), is distributed via [npm](https://www.npmjs.com/package/@stackoverflow/stacks), and publishes [release notes on Github](https://github.com/StackExchange/Stacks/releases). Follow the steps below to release a new version of Stacks.
132
-
133
- ### Bump the version number
134
- ```sh
135
- npm version [major | minor | patch]
136
- ```
137
-
138
- ### Push the new tag
139
- ```sh
140
- git push && git push --tags
141
- ```
142
-
143
- ### Create release notes [on Github](https://github.com/StackExchange/Stacks/releases/new)
144
-
145
- 1. Visit https://github.com/StackExchange/Stacks/releases/new
146
- 1. Choose your new version from the "Choose a tag" dropdown
147
- 1. Click "Generate release notes"
148
- 1. Cleanup and complete the release notes
149
- - Prominently mention any breaking changes, if applicable
150
- - Include a "What's Changed" section in the release notes
151
- - Mention significant bug fixes
152
- - Mention new features
153
- - Mention significant under-the-hood changes that could impact consumers
154
-
155
- ### Ship your newly created version to [npm](https://www.npmjs.com/package/@stackoverflow/stacks)
156
- ```sh
157
- npm publish
158
- ```
159
-
160
- ### Merge `develop` into `production` and push
161
- ```sh
162
- git checkout production && git merge develop && git push
163
- ```
164
-
165
- ### Push the updated docs site
166
- Head to [Netlify](https://app.netlify.com), navigate to the Stacks overview, click on "Production deploys", and select "Deploy site" from the "Trigger deploy" dropdown.
167
-
168
- ## Bugs and feature requests
169
- Have a bug or feature request? First search existing or closed issues to make sure the issue hasn’t been noted yet. If not, review our [issue guidelines](/CONTRIBUTING.md#open-an-issue) for submitting [a bug report](/CONTRIBUTING.md#reporting-bugs) or [feature request](/CONTRIBUTING.md#feature-requests).
170
-
171
- ## Contributing
172
- If you’d like to contribute to Stacks, please read through our [contribution guidelines](/CONTRIBUTING.md). Included are directions for opening issues, coding standards, and notes on development.
173
-
174
- ## License
175
- Code and documentation copyright 2017-2024 Stack Exchange, Inc and released under the [MIT License](/LICENSE.MD).
176
-
177
- [gh-action-url]: https://github.com/StackExchange/Stacks/actions/workflows/main.yml
178
- [gh-action-badge]: https://github.com/StackExchange/Stacks/actions/workflows/workflow.yml/badge.svg?branch=develop
179
- [npm-url]: https://npmjs.org/package/@stackoverflow/stacks
180
- [npm-badge]: https://img.shields.io/npm/v/@stackoverflow/stacks.svg
1
+ # Stacks
2
+
3
+ [![ci status][gh-action-badge]][gh-action-url] [![npm version][npm-badge]][npm-url]
4
+
5
+ Stacks is Stack Overflow’s design system. It includes the resources needed to create consistent, predictable interfaces and workflows that conform to Stack Overflow’s principles, design language, and best practices.
6
+
7
+ Our documentation is built with Stacks itself, using its [immutable, atomic classes](http://johnpolacek.com/rethinking/) and components.
8
+
9
+ The Stacks website documents:
10
+
11
+ ### Product
12
+ - Semantic and accessible component markup
13
+ - Cross-browser compatible Less / CSS
14
+ - An [icon library](https://github.com/StackExchange/Stacks-Icons)
15
+
16
+ ### Email
17
+ - Email templates & components
18
+
19
+ Stacks documentation can be found at https://stackoverflow.design/
20
+
21
+ ## Table of contents
22
+
23
+ - [Using Stacks](#using-stacks)
24
+ - [Migrating from v1 to v2](#migrating-from-v1-to-v2)
25
+ - [Building Stacks](#building-stacks)
26
+ - [Format Stacks](#format-stacks)
27
+ - [Linting Stacks](#linting-stacks)
28
+ - [Testing Stacks](#testing-stacks)
29
+ - [Releasing Stacks](#releasing-a-new-version-of-stacks)
30
+ - [Bugs and feature requests](#bugs-and-feature-requests)
31
+ - [Contributing](#contributing)
32
+ - [License](#license)
33
+
34
+ ## Using Stacks
35
+ Using Stacks is outlined in our [usage guidelines](https://stackoverflow.design/product/develop/using-stacks).
36
+
37
+ ## Migrating from v1 to v2
38
+
39
+ To migrate from Stacks v1 to v2, see our [migration guide](/MIGRATION_GUIDE.md).
40
+
41
+ ## Building Stacks
42
+ To contribute to Stacks documentation or its CSS library, you’ll need to build Stacks locally. View our [building guidelines](https://stackoverflow.design/product/develop/building).
43
+
44
+ Having trouble getting these steps to work? Open [an issue](https://github.com/StackExchange/Stacks/issues/new) with a `setup` label.
45
+
46
+ ## Format Stacks
47
+
48
+ Format the source code with prettier via running:
49
+ ```sh
50
+ npm run format
51
+ ```
52
+
53
+ ## Linting Stacks
54
+
55
+ Run all lint suites by running:
56
+ ```sh
57
+ npm run lint
58
+ ```
59
+
60
+ Lint the styles (stylelint) by running:
61
+ ```sh
62
+ npm run lint:css
63
+ ```
64
+ Lint the typescript source code (eslint) via running:
65
+ ```sh
66
+ npm run lint:ts
67
+ ```
68
+ Lint the source code format (prettier) via running:
69
+ ```sh
70
+ npm run lint:format
71
+ ```
72
+
73
+ ## Testing Stacks
74
+
75
+ Run all test suites by running:
76
+ ```sh
77
+ npm test
78
+ ```
79
+ ### Unit/Component Tests
80
+
81
+ Unit/Component tests are written with [DOM Testing Library](https://testing-library.com/docs/dom-testing-library/intro).
82
+ Please follow the library's principles and documentation to write tests.
83
+
84
+ Stacks uses [Web Test Runner](https://modern-web.dev/docs/test-runner/overview/) and [Playwright](https://modern-web.dev/docs/test-runner/browser-launchers/playwright/) to run tests in a real browser context.
85
+
86
+ Execute the unit/component tests suite by running:
87
+ ```sh
88
+ npm run test:unit
89
+ ```
90
+ or if you prefer watch mode run:
91
+ ```sh
92
+ npm run test:unit:watch
93
+ ```
94
+
95
+ ### Visual Regression Tests
96
+
97
+ **Prerequisites:**
98
+ - `git lfs` ([installation docs](https://docs.github.com/en/repositories/working-with-files/managing-large-files/installing-git-large-file-storage))
99
+ - `docker` ([installation docs](https://docs.docker.com/engine/install/))
100
+ - `pwsh` ([Installation docs](https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell?view=powershell-7.3))
101
+ - Run `git config diff.lfs.textconv cat` to make sure image diff works as expected ([More info](https://github.com/microsoft/vscode/issues/86611#issuecomment-875894108))
102
+
103
+ This [Web Test Runner plugin](https://www.npmjs.com/package/@web/test-runner-visual-regression) is used to run visual regression tests.
104
+ Visual regression tests end with this suffix `*.visual.test.ts`.
105
+
106
+ Execute the visual regression tests suite by running:
107
+ ```sh
108
+ npm run test:visual
109
+ ```
110
+ After the first run, if there are failing snapshots, they end up overriding the baseline ones in the filesystem (e.g. `/screenshots/<browser>/baseline/<name>.png`).
111
+ We do this for easier comparison of the dif directly in vscode and to make sure only the failing snapshots get regenerated (see [this GH discussion](https://github.com/modernweb-dev/web/discussions/427#discussioncomment-3543771) that inspired the approach).
112
+
113
+ We also recommend to install [this vscode extension](https://marketplace.visualstudio.com/items?itemName=RayWiis.png-image-diff) for getting better diffs.
114
+
115
+ ### Less Tests
116
+
117
+ This is an experimental suite to test the generation of CSS from Less files.
118
+ Less tests end with this suffix `*.less.test.ts`.
119
+
120
+ Execute the less tests suite by running:
121
+ ```sh
122
+ npm run test:less
123
+ ```
124
+
125
+ Update the css snapshots via:
126
+ ```sh
127
+ npm run test:less:update
128
+ ```
129
+
130
+ ## Releasing a new version of Stacks
131
+ Stacks uses [Semantic Versioning](https://semver.org/), is distributed via [npm](https://www.npmjs.com/package/@stackoverflow/stacks), and publishes [release notes on Github](https://github.com/StackExchange/Stacks/releases).
132
+
133
+ We use [changesets](https://github.com/changesets/changesets) to automatize the steps necessary to publish to NPM, create GH releases and a changelog.
134
+
135
+ - Every time you do work that requires a new release to be published, [add a changesets entry](https://github.com/changesets/changesets/blob/main/docs/adding-a-changeset.md) by running `npx chageset` and follow the instrcutions on screen. (changes that do not require a new release - e.g. changing a test file - don't need a changeset).
136
+ - When opening a PR without a corresponding changeset the [changesets-bot](https://github.com/apps/changeset-bot) will remind you to do so. It generally makes sense to have one changeset for PR (if the PR changes do not require a new release to be published the bot message can be safely ignored)
137
+ - The [release github workflow](.github/workflows/release.yml) continuosly check if there are new pending changesets in the main branch, if there are it creates a GH PR (`chore(release)` [see example](https://github.com/StackExchange/apca-check/pull/2)) and continue updating it as more changesets are potentially pushed/merged to the main branch.
138
+ - When we are ready to cut a release we need to simply merge the `chore(release)` PR back to main and the release github workflow will take care of publishing the changes to NPM and create a GH release for us. The `chore(release)` PR also give us an opportunity to adjust the automatically generated changelog when necessary (the entry in the changelog file is also what will end up in the GH release notes).
139
+
140
+ _The release github workflow only run if the CI workflow (running linter, formatter and tests) is successful: CI is blocking accidental releases_.
141
+
142
+ _Despite using changesets to communicate the intent of creating releases in a more explicit way, we still follow [conventional commits standards](https://www.conventionalcommits.org/en/v1.0.0/) for keeping our git history easily parseable by the human eye._
143
+
144
+ Successful releases trigger automatically a new deployment to stackoverflow.design by merging the `develop` branch into the `production` branch.
145
+
146
+ ## Bugs and feature requests
147
+ Have a bug or feature request? First search existing or closed issues to make sure the issue hasn’t been noted yet. If not, review our [issue guidelines](/CONTRIBUTING.md#open-an-issue) for submitting [a bug report](/CONTRIBUTING.md#reporting-bugs) or [feature request](/CONTRIBUTING.md#feature-requests).
148
+
149
+ ## Contributing
150
+ If you’d like to contribute to Stacks, please read through our [contribution guidelines](/CONTRIBUTING.md). Included are directions for opening issues, coding standards, and notes on development.
151
+
152
+ ## License
153
+ Code and documentation copyright 2017-2024 Stack Exchange, Inc and released under the [MIT License](/LICENSE.MD).
154
+
155
+ [gh-action-url]: https://github.com/StackExchange/Stacks/actions/workflows/main.yml
156
+ [gh-action-badge]: https://github.com/StackExchange/Stacks/actions/workflows/workflow.yml/badge.svg?branch=develop
157
+ [npm-url]: https://npmjs.org/package/@stackoverflow/stacks
158
+ [npm-badge]: https://img.shields.io/npm/v/@stackoverflow/stacks.svg
@@ -2256,17 +2256,8 @@ body.theme-highcontrast .s-textarea {
2256
2256
  fieldset[disabled] .s-input,
2257
2257
  fieldset[disabled] .s-textarea,
2258
2258
  .s-input[disabled],
2259
- .s-textarea[disabled],
2260
- .s-input[readonly],
2261
- .s-textarea[readonly],
2262
- .is-readonly .s-input,
2263
- .is-readonly .s-textarea {
2264
- --_in-c: not-allowed;
2265
- }
2266
- fieldset[disabled] .s-input,
2267
- fieldset[disabled] .s-textarea,
2268
- .s-input[disabled],
2269
2259
  .s-textarea[disabled] {
2260
+ --_in-c: not-allowed;
2270
2261
  --_in-o: var(--_o-disabled-static);
2271
2262
  }
2272
2263
  .s-input[readonly],
@@ -2275,6 +2266,7 @@ fieldset[disabled] .s-textarea,
2275
2266
  .is-readonly .s-textarea {
2276
2267
  --_in-bg: var(--black-150);
2277
2268
  --_in-bc: var(--bc-light);
2269
+ --_in-c: default;
2278
2270
  --_in-fc: var(--black-400);
2279
2271
  }
2280
2272
  body.theme-highcontrast .s-input[readonly],
@@ -2548,7 +2540,9 @@ fieldset[disabled] .s-input-message {
2548
2540
  color: var(--_im-a-fc-hover) !important;
2549
2541
  }
2550
2542
  .s-label {
2543
+ --_la-c: unset;
2551
2544
  --_la-fs: var(--fs-body2);
2545
+ cursor: var(--_la-c);
2552
2546
  font-size: var(--_la-fs);
2553
2547
  color: var(--fc-medium);
2554
2548
  font-family: inherit;
@@ -2556,21 +2550,28 @@ fieldset[disabled] .s-input-message {
2556
2550
  padding: 0 var(--su2);
2557
2551
  }
2558
2552
  .s-label[for] {
2559
- cursor: pointer;
2553
+ --_la-c: pointer;
2560
2554
  }
2561
2555
  fieldset[disabled] .s-label,
2562
2556
  .is-disabled .s-label,
2563
2557
  .s-check-control .s-checkbox[disabled] + .s-label,
2564
2558
  .s-check-control .s-radio[disabled] + .s-label {
2565
- cursor: not-allowed;
2566
2559
  opacity: var(--_o-disabled-static);
2567
2560
  }
2568
2561
  fieldset[disabled] .s-label .s-description,
2569
2562
  .is-disabled .s-label .s-description {
2570
2563
  opacity: unset;
2571
2564
  }
2565
+ fieldset[disabled] .s-label,
2566
+ .is-disabled .s-label,
2567
+ fieldset[disabled] .s-label[for],
2568
+ .is-disabled .s-label[for],
2569
+ .s-check-control .s-checkbox[disabled] + .s-label,
2570
+ .s-check-control .s-radio[disabled] + .s-label {
2571
+ --_la-c: not-allowed;
2572
+ }
2572
2573
  .is-readonly .s-label {
2573
- cursor: not-allowed;
2574
+ --_la-c: default;
2574
2575
  }
2575
2576
  .s-label.s-label__sm {
2576
2577
  --_la-fs: var(--fs-caption);
@@ -3904,6 +3905,7 @@ body.theme-highcontrast .s-post-summary .s-post-summary--answer:before {
3904
3905
  opacity: var(--_ps-o);
3905
3906
  }
3906
3907
  .s-post-summary .s-post-summary--content-excerpt {
3908
+ /* stylelint-disable-next-line declaration-property-value-keyword-no-deprecated */
3907
3909
  word-break: break-word !important;
3908
3910
  overflow-wrap: break-word !important;
3909
3911
  -webkit-hyphens: auto !important;
@@ -3950,6 +3952,7 @@ body.theme-highcontrast .s-post-summary .s-post-summary--answer:before {
3950
3952
  position: absolute;
3951
3953
  }
3952
3954
  .s-post-summary .s-post-summary--content-title {
3955
+ /* stylelint-disable-next-line declaration-property-value-keyword-no-deprecated */
3953
3956
  word-break: break-word !important;
3954
3957
  overflow-wrap: break-word !important;
3955
3958
  -webkit-hyphens: auto !important;
@@ -3965,6 +3968,7 @@ body.theme-highcontrast .s-post-summary .s-post-summary--answer:before {
3965
3968
  padding-right: var(--su24);
3966
3969
  }
3967
3970
  .s-post-summary .s-post-summary--content-title a {
3971
+ /* stylelint-disable-next-line declaration-property-value-keyword-no-deprecated */
3968
3972
  word-break: break-word !important;
3969
3973
  overflow-wrap: break-word !important;
3970
3974
  -webkit-hyphens: auto !important;
@@ -7502,6 +7506,8 @@ body.theme-highcontrast:not(.theme-dark) .theme-dark__forced {
7502
7506
  }
7503
7507
  }
7504
7508
  /* stylelint-disable indentation */
7509
+ /* stylelint-disable at-rule-descriptor-value-no-unknown */
7510
+ /* stylelint-enable at-rule-descriptor-value-no-unknown */
7505
7511
  /**
7506
7512
  * Focus styles for the given context.
7507
7513
  *
@@ -15550,6 +15556,7 @@ p {
15550
15556
  hyphens: unset !important;
15551
15557
  }
15552
15558
  .break-word {
15559
+ /* stylelint-disable-next-line declaration-property-value-keyword-no-deprecated */
15553
15560
  word-break: break-word !important;
15554
15561
  overflow-wrap: break-word !important;
15555
15562
  -webkit-hyphens: auto !important;