@stackoverflow/stacks 1.6.2 → 1.6.4

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;
@@ -1621,20 +1621,6 @@ body.theme-highcontrast .is-readonly .s-input-icon {
1621
1621
  .s-textarea__md,
1622
1622
  .s-select__md > select {
1623
1623
  font-size: var(--fs-body3);
1624
- }
1625
- .s-input__lg,
1626
- .s-textarea__lg,
1627
- .s-select__lg > select {
1628
- font-size: var(--fs-title);
1629
- }
1630
- .s-input__xl,
1631
- .s-textarea__xl,
1632
- .s-select__xl > select {
1633
- font-size: var(--fs-headline1);
1634
- }
1635
- .s-input__md,
1636
- .s-textarea__md,
1637
- .s-select__md > select {
1638
1624
  padding-top: 0.5em;
1639
1625
  padding-bottom: 0.5em;
1640
1626
  border-radius: calc(var(--br-sm) + 1px);
@@ -1646,12 +1632,14 @@ body.theme-highcontrast .is-readonly .s-input-icon {
1646
1632
  .s-input__lg,
1647
1633
  .s-textarea__lg,
1648
1634
  .s-select__lg > select {
1635
+ font-size: var(--fs-title);
1649
1636
  padding: 0.45em 0.6em;
1650
1637
  border-radius: calc(var(--br-sm) + 1px);
1651
1638
  }
1652
1639
  .s-input__xl,
1653
1640
  .s-textarea__xl,
1654
1641
  .s-select__xl > select {
1642
+ font-size: var(--fs-headline1);
1655
1643
  padding: 0.4em 0.5em;
1656
1644
  border-radius: var(--br-md);
1657
1645
  }
@@ -1699,7 +1687,7 @@ fieldset[disabled] .s-label .s-description,
1699
1687
  .s-label.s-label__xl {
1700
1688
  --_la-fs: var(--fs-headline1);
1701
1689
  }
1702
- .s-label .s-label--status {
1690
+ .s-label--status {
1703
1691
  --_la-status-b: none;
1704
1692
  --_la-status-bg: var(--black-050);
1705
1693
  --_la-status-fc: var(--fc-medium);
@@ -1713,42 +1701,42 @@ fieldset[disabled] .s-label .s-description,
1713
1701
  padding: var(--su2) var(--su8);
1714
1702
  vertical-align: text-bottom;
1715
1703
  }
1716
- body.theme-highcontrast .s-label .s-label--status {
1704
+ body.theme-highcontrast .s-label--status {
1717
1705
  --_la-status-b: var(--su-static1) solid currentColor;
1718
1706
  }
1719
- .s-label .s-label--status__beta {
1707
+ .s-label--status__beta {
1720
1708
  --_la-status-bg: var(--blue-100);
1721
1709
  --_la-status-fc: var(--blue-700);
1722
1710
  }
1723
- .s-label .s-label--status__new {
1711
+ .s-label--status__new {
1724
1712
  --_la-status-bg: var(--green-100);
1725
1713
  --_la-status-fc: var(--green-700);
1726
1714
  }
1727
1715
  @media (prefers-color-scheme: dark) {
1728
- body.theme-system .s-label .s-label--status__new {
1716
+ body.theme-system .s-label--status__new {
1729
1717
  --_la-status-bg: var(--green-050);
1730
1718
  --_la-status-fc: var(--green-800);
1731
1719
  }
1732
1720
  }
1733
- body.theme-dark .s-label .s-label--status__new,
1734
- .theme-dark__forced .s-label .s-label--status__new,
1735
- body.theme-system .theme-dark__forced .s-label .s-label--status__new {
1721
+ body.theme-dark .s-label--status__new,
1722
+ .theme-dark__forced .s-label--status__new,
1723
+ body.theme-system .theme-dark__forced .s-label--status__new {
1736
1724
  --_la-status-bg: var(--green-050);
1737
1725
  --_la-status-fc: var(--green-800);
1738
1726
  }
1739
- .s-label .s-label--status__required {
1727
+ .s-label--status__required {
1740
1728
  --_la-status-bg: var(--red-100);
1741
1729
  --_la-status-fc: var(--red-700);
1742
1730
  }
1743
1731
  @media (prefers-color-scheme: dark) {
1744
- body.theme-system .s-label .s-label--status__required {
1732
+ body.theme-system .s-label--status__required {
1745
1733
  --_la-status-bg: var(--red-050);
1746
1734
  --_la-status-fc: var(--red-800);
1747
1735
  }
1748
1736
  }
1749
- body.theme-dark .s-label .s-label--status__required,
1750
- .theme-dark__forced .s-label .s-label--status__required,
1751
- body.theme-system .theme-dark__forced .s-label .s-label--status__required {
1737
+ body.theme-dark .s-label--status__required,
1738
+ .theme-dark__forced .s-label--status__required,
1739
+ body.theme-system .theme-dark__forced .s-label--status__required {
1752
1740
  --_la-status-bg: var(--red-050);
1753
1741
  --_la-status-fc: var(--red-800);
1754
1742
  }
@@ -21234,7 +21222,7 @@ body *:after {
21234
21222
  --_bu-bc: transparent;
21235
21223
  --_bu-bg: transparent;
21236
21224
  --_bu-br: var(--br-sm);
21237
- --_bu-bs: inset 0 var(--su-static1) 0 0 hsla(0, 0%, 100%, 0.7);
21225
+ --_bu-bs: none;
21238
21226
  --_bu-fc: var(--theme-button-color);
21239
21227
  --_bu-focus-ring: 0 0 0 var(--su-static4) var(--focus-ring);
21240
21228
  --_bu-fs: var(--fs-body1);
@@ -21354,6 +21342,7 @@ body.theme-highcontrast .s-btn-group.s-btn-group--radio .s-btn--radio:checked +
21354
21342
  box-shadow: none;
21355
21343
  }
21356
21344
  .s-btn.s-btn__filled {
21345
+ --_bu-bs: inset 0 var(--su-static1) 0 0 hsla(0, 0%, 100%, 0.7);
21357
21346
  border-color: var(--_bu-filled-bc);
21358
21347
  background-color: var(--_bu-filled-bg);
21359
21348
  color: var(--_bu-filled-fc);