@stackoverflow/stacks 1.6.1 → 1.6.3

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/README.md CHANGED
@@ -20,6 +20,8 @@ Stacks documentation can be found at https://stackoverflow.design/
20
20
 
21
21
  - [Using Stacks](#using-stacks)
22
22
  - [Building Stacks](#building-stacks)
23
+ - [Linting Stacks](#linting-stacks)
24
+ - [Testing Stacks](#testing-stacks)
23
25
  - [Bugs and feature requests](#bugs-and-feature-requests)
24
26
  - [Contributing](#contributing)
25
27
  - [License](#license)
@@ -32,6 +34,26 @@ To contribute to Stacks documentation or its CSS library, you’ll need to build
32
34
 
33
35
  Having trouble getting these steps to work? Open [an issue](https://github.com/StackExchange/Stacks/issues/new) with a `setup` label.
34
36
 
37
+ ## Linting Stacks
38
+
39
+ Run all lint suites by running:
40
+ ```sh
41
+ npm run lint
42
+ ```
43
+
44
+ Lint the styles (stylelint) by running:
45
+ ```sh
46
+ npm run lint:css
47
+ ```
48
+ Lint the typescript source code (eslint) via running:
49
+ ```sh
50
+ npm run lint:ts
51
+ ```
52
+ Lint the source code format (prettier) via running:
53
+ ```sh
54
+ npm run lint:format
55
+ ```
56
+
35
57
  ## Testing Stacks
36
58
  Stacks has implemented visual regression testing with [Backstop](https://github.com/garris/BackstopJS). To test if your new feature introduces visual regressions, run `npm run test` in a new Terminal window while Stacks is running. After the tests have run, a new browser window with any regressions will show. If the regressions are desired, you can run `npm run approve` to establish the new baseline.
37
59
 
@@ -1,7 +1,7 @@
1
- export { ExpandableController } from './s-expandable-control';
2
- export { hideModal, ModalController, showModal } from './s-modal';
3
- export { TabListController } from './s-navigation-tablist';
4
- export { attachPopover, detachPopover, hidePopover, BasePopoverController, PopoverController, showPopover } from './s-popover';
5
- export { TableController } from './s-table';
6
- export { setTooltipHtml, setTooltipText, TooltipController } from './s-tooltip';
7
- export { UploaderController } from './s-uploader';
1
+ export { ExpandableController } from "./s-expandable-control";
2
+ export { hideModal, ModalController, showModal } from "./s-modal";
3
+ export { TabListController } from "./s-navigation-tablist";
4
+ export { attachPopover, detachPopover, hidePopover, BasePopoverController, PopoverController, showPopover, } from "./s-popover";
5
+ export { TableController } from "./s-table";
6
+ export { setTooltipHtml, setTooltipText, TooltipController } from "./s-tooltip";
7
+ export { UploaderController } from "./s-uploader";
@@ -1,4 +1,4 @@
1
- import * as Stacks from '../stacks';
1
+ import * as Stacks from "../stacks";
2
2
  export declare class ExpandableController extends Stacks.StacksController {
3
3
  private isCollapsed;
4
4
  private events;
@@ -732,6 +732,7 @@ body.theme-highcontrast .s-badge.s-badge__danger.s-badge__filled {
732
732
  --_ba-bg: var(--black-700);
733
733
  --_ba-fc: var(--white);
734
734
  }
735
+ .s-badge--image,
735
736
  .s-badge .s-badge--image {
736
737
  display: inline-flex;
737
738
  align-self: center;
@@ -1620,20 +1621,6 @@ body.theme-highcontrast .is-readonly .s-input-icon {
1620
1621
  .s-textarea__md,
1621
1622
  .s-select__md > select {
1622
1623
  font-size: var(--fs-body3);
1623
- }
1624
- .s-input__lg,
1625
- .s-textarea__lg,
1626
- .s-select__lg > select {
1627
- font-size: var(--fs-title);
1628
- }
1629
- .s-input__xl,
1630
- .s-textarea__xl,
1631
- .s-select__xl > select {
1632
- font-size: var(--fs-headline1);
1633
- }
1634
- .s-input__md,
1635
- .s-textarea__md,
1636
- .s-select__md > select {
1637
1624
  padding-top: 0.5em;
1638
1625
  padding-bottom: 0.5em;
1639
1626
  border-radius: calc(var(--br-sm) + 1px);
@@ -1645,12 +1632,14 @@ body.theme-highcontrast .is-readonly .s-input-icon {
1645
1632
  .s-input__lg,
1646
1633
  .s-textarea__lg,
1647
1634
  .s-select__lg > select {
1635
+ font-size: var(--fs-title);
1648
1636
  padding: 0.45em 0.6em;
1649
1637
  border-radius: calc(var(--br-sm) + 1px);
1650
1638
  }
1651
1639
  .s-input__xl,
1652
1640
  .s-textarea__xl,
1653
1641
  .s-select__xl > select {
1642
+ font-size: var(--fs-headline1);
1654
1643
  padding: 0.4em 0.5em;
1655
1644
  border-radius: var(--br-md);
1656
1645
  }
@@ -2938,6 +2927,8 @@ body.theme-highcontrast .s-progress.s-progress__stepped .s-progress--stop {
2938
2927
  --_pr-spacing: 1.1em;
2939
2928
  --_pr-spacing-condensed: calc(var(--_pr-spacing) / 2);
2940
2929
  --_pr-spoiler-transition: opacity 0.1s ease-in-out;
2930
+ --s-prose-spacing: var(--_pr-spacing);
2931
+ --s-prose-spacing-condensed: var(--_pr-spacing-condensed);
2941
2932
  font-size: var(--_pr-fs);
2942
2933
  line-height: var(--_pr-lh);
2943
2934
  overflow-wrap: break-word;
@@ -3142,6 +3133,7 @@ body.theme-highcontrast .s-prose {
3142
3133
  quotes: none;
3143
3134
  }
3144
3135
  .s-prose dd,
3136
+ .s-prose div,
3145
3137
  .s-prose dl,
3146
3138
  .s-prose .s-table-container,
3147
3139
  .s-prose .s-link-preview {
@@ -21230,7 +21222,7 @@ body *:after {
21230
21222
  --_bu-bc: transparent;
21231
21223
  --_bu-bg: transparent;
21232
21224
  --_bu-br: var(--br-sm);
21233
- --_bu-bs: inset 0 var(--su-static1) 0 0 hsla(0, 0%, 100%, 0.7);
21225
+ --_bu-bs: none;
21234
21226
  --_bu-fc: var(--theme-button-color);
21235
21227
  --_bu-focus-ring: 0 0 0 var(--su-static4) var(--focus-ring);
21236
21228
  --_bu-fs: var(--fs-body1);
@@ -21350,6 +21342,7 @@ body.theme-highcontrast .s-btn-group.s-btn-group--radio .s-btn--radio:checked +
21350
21342
  box-shadow: none;
21351
21343
  }
21352
21344
  .s-btn.s-btn__filled {
21345
+ --_bu-bs: inset 0 var(--su-static1) 0 0 hsla(0, 0%, 100%, 0.7);
21353
21346
  border-color: var(--_bu-filled-bc);
21354
21347
  background-color: var(--_bu-filled-bg);
21355
21348
  color: var(--_bu-filled-fc);
@@ -22435,6 +22428,9 @@ body.theme-highcontrast .s-banner__warning.s-banner__important {
22435
22428
  color: inherit;
22436
22429
  padding: var(--su8);
22437
22430
  }
22431
+ .s-banner .s-banner--btn:not(:focus) {
22432
+ box-shadow: none;
22433
+ }
22438
22434
  .s-banner .s-banner--btn:focus,
22439
22435
  .s-banner .s-banner--btn:hover {
22440
22436
  background: var(--_no-btn-bg-focus);
@@ -22665,6 +22661,9 @@ body.theme-highcontrast .s-notice__warning.s-notice__important {
22665
22661
  color: inherit;
22666
22662
  padding: var(--su8);
22667
22663
  }
22664
+ .s-notice .s-notice--btn:not(:focus) {
22665
+ box-shadow: none;
22666
+ }
22668
22667
  .s-notice .s-notice--btn:focus,
22669
22668
  .s-notice .s-notice--btn:hover {
22670
22669
  background: var(--_no-btn-bg-focus);