@stackoverflow/stacks 2.4.0 → 2.5.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.
Files changed (103) hide show
  1. package/dist/css/stacks.css +12 -58
  2. package/dist/css/stacks.min.css +1 -1
  3. package/lib/components/tag/tag.less +16 -68
  4. package/package.json +10 -9
  5. package/lib/atomic/__snapshots__/color-new.less.test.ts.snap +0 -3015
  6. package/lib/atomic/__snapshots__/color.less.test.ts.snap +0 -3132
  7. package/lib/atomic/__snapshots__/misc.less.test.ts.snap +0 -893
  8. package/lib/atomic/__snapshots__/spacing.less.test.ts.snap +0 -1928
  9. package/lib/atomic/color.less.test.ts +0 -12
  10. package/lib/atomic/misc.less.test.ts +0 -12
  11. package/lib/atomic/spacing.less.test.ts +0 -12
  12. package/lib/components/activity-indicator/activity-indicator.a11y.test.ts +0 -13
  13. package/lib/components/activity-indicator/activity-indicator.visual.test.ts +0 -22
  14. package/lib/components/anchor/anchor.a11y.test.ts +0 -35
  15. package/lib/components/anchor/anchor.visual.test.ts +0 -47
  16. package/lib/components/avatar/avatar.a11y.test.ts +0 -35
  17. package/lib/components/avatar/avatar.visual.test.ts +0 -50
  18. package/lib/components/award-bling/award-bling.a11y.test.ts +0 -15
  19. package/lib/components/award-bling/award-bling.visual.test.ts +0 -24
  20. package/lib/components/badge/badge.a11y.test.ts +0 -143
  21. package/lib/components/badge/badge.visual.test.ts +0 -165
  22. package/lib/components/banner/banner.a11y.test.ts +0 -36
  23. package/lib/components/banner/banner.test.ts +0 -73
  24. package/lib/components/banner/banner.visual.test.ts +0 -36
  25. package/lib/components/block-link/block-link.a11y.test.ts +0 -57
  26. package/lib/components/block-link/block-link.visual.test.ts +0 -57
  27. package/lib/components/breadcrumbs/breadcrumbs.a11y.test.ts +0 -36
  28. package/lib/components/breadcrumbs/breadcrumbs.visual.test.ts +0 -36
  29. package/lib/components/button/button.a11y.test.ts +0 -21
  30. package/lib/components/button/button.test.setup.ts +0 -36
  31. package/lib/components/button/button.visual.test.ts +0 -18
  32. package/lib/components/button-group/button-group.a11y.test.ts +0 -12
  33. package/lib/components/button-group/button-group.test.setup.ts +0 -77
  34. package/lib/components/button-group/button-group.visual.test.ts +0 -7
  35. package/lib/components/card/card.a11y.test.ts +0 -12
  36. package/lib/components/card/card.visual.test.ts +0 -52
  37. package/lib/components/check-control/check-control.a11y.test.ts +0 -33
  38. package/lib/components/check-control/check-control.visual.test.ts +0 -36
  39. package/lib/components/check-group/check-group.a11y.test.ts +0 -49
  40. package/lib/components/check-group/check-group.visual.test.ts +0 -56
  41. package/lib/components/checkbox_radio/checkbox_radio.a11y.test.ts +0 -37
  42. package/lib/components/checkbox_radio/checkbox_radio.visual.test.ts +0 -33
  43. package/lib/components/code-block/code-block.a11y.test.ts +0 -27
  44. package/lib/components/code-block/code-block.visual.test.ts +0 -18
  45. package/lib/components/description/description.a11y.test.ts +0 -28
  46. package/lib/components/description/description.visual.test.ts +0 -28
  47. package/lib/components/empty-state/empty-state.a11y.test.ts +0 -16
  48. package/lib/components/empty-state/empty-state.visual.test.ts +0 -16
  49. package/lib/components/expandable/expandable.a11y.test.ts +0 -26
  50. package/lib/components/expandable/expandable.test.ts +0 -51
  51. package/lib/components/expandable/expandable.visual.test.ts +0 -26
  52. package/lib/components/input-fill/input-fill.a11y.test.ts +0 -21
  53. package/lib/components/input-fill/input-fill.visual.test.ts +0 -21
  54. package/lib/components/input-icon/input-icon.a11y.test.ts +0 -81
  55. package/lib/components/input-icon/input-icon.visual.test.ts +0 -92
  56. package/lib/components/input-message/input-message.a11y.test.ts +0 -57
  57. package/lib/components/input-message/input-message.visual.test.ts +0 -58
  58. package/lib/components/input_textarea/input_textarea.a11y.test.ts +0 -109
  59. package/lib/components/input_textarea/input_textarea.visual.test.ts +0 -95
  60. package/lib/components/label/label.a11y.test.ts +0 -47
  61. package/lib/components/label/label.visual.test.ts +0 -65
  62. package/lib/components/link/link.a11y.test.ts +0 -27
  63. package/lib/components/link/link.visual.test.ts +0 -31
  64. package/lib/components/link-preview/link-preview.a11y.test.ts +0 -47
  65. package/lib/components/link-preview/link-preview.visual.test.ts +0 -52
  66. package/lib/components/menu/menu.a11y.test.ts +0 -39
  67. package/lib/components/menu/menu.visual.test.ts +0 -39
  68. package/lib/components/modal/modal.a11y.test.ts +0 -41
  69. package/lib/components/modal/modal.test.ts +0 -155
  70. package/lib/components/modal/modal.visual.test.ts +0 -41
  71. package/lib/components/navigation/navigation.a11y.test.ts +0 -81
  72. package/lib/components/navigation/navigation.visual.test.ts +0 -98
  73. package/lib/components/notice/notice.a11y.test.ts +0 -16
  74. package/lib/components/notice/notice.visual.test.ts +0 -25
  75. package/lib/components/page-title/page-title.a11y.test.ts +0 -28
  76. package/lib/components/page-title/page-title.visual.test.ts +0 -58
  77. package/lib/components/pagination/pagination.a11y.test.ts +0 -21
  78. package/lib/components/pagination/pagination.visual.test.ts +0 -25
  79. package/lib/components/popover/tooltip.test.ts +0 -62
  80. package/lib/components/post-summary/post-summary.a11y.test.ts +0 -25
  81. package/lib/components/post-summary/post-summary.test.setup.ts +0 -435
  82. package/lib/components/post-summary/post-summary.visual.test.ts +0 -17
  83. package/lib/components/progress-bar/progress-bar.a11y.test.ts +0 -189
  84. package/lib/components/progress-bar/progress-bar.visual.test.ts +0 -188
  85. package/lib/components/select/select.a11y.test.ts +0 -72
  86. package/lib/components/select/select.visual.test.ts +0 -72
  87. package/lib/components/spinner/spinner.a11y.test.ts +0 -14
  88. package/lib/components/spinner/spinner.visual.test.ts +0 -40
  89. package/lib/components/table/table.a11y.test.ts +0 -112
  90. package/lib/components/table/table.test.ts +0 -366
  91. package/lib/components/table/table.visual.test.ts +0 -104
  92. package/lib/components/tag/tag.a11y.test.ts +0 -28
  93. package/lib/components/tag/tag.visual.test.ts +0 -43
  94. package/lib/components/toast/toast.a11y.test.ts +0 -29
  95. package/lib/components/toast/toast.test.ts +0 -64
  96. package/lib/components/toast/toast.visual.test.ts +0 -30
  97. package/lib/components/toggle-switch/toggle-switch.a11y.test.ts +0 -66
  98. package/lib/components/toggle-switch/toggle-switch.visual.test.ts +0 -70
  99. package/lib/components/topbar/topbar.visual.test.ts +0 -217
  100. package/lib/exports/__snapshots__/color-mixins.less.test.ts.snap +0 -558
  101. package/lib/exports/__snapshots__/color.less.test.ts.snap +0 -819
  102. package/lib/exports/color-mixins.less.test.ts +0 -150
  103. package/lib/exports/color.less.test.ts +0 -12
@@ -5514,14 +5514,11 @@ body.theme-highcontrast .s-sidebarwidget.s-sidebarwidget__green {
5514
5514
  }
5515
5515
  .s-tag {
5516
5516
  --_ta-bc: var(--theme-tag-border-color, var(--_ta-bg));
5517
+ --_ta-bg: var(--theme-tag-background-color, var(--black-150));
5518
+ --_ta-fc: var(--theme-tag-color, var(--black-500));
5517
5519
  --_ta-bc-hover: var(--theme-tag-hover-border-color, var(--_ta-bg-hover));
5518
- --_ta-bc-selected: var(--theme-tag-selected-border-color, var(--_ta-bg-selected));
5519
- --_ta-bg: var(--theme-tag-background-color, var(--theme-secondary-100));
5520
- --_ta-bg-hover: var(--theme-tag-hover-background-color, var(--theme-secondary-200));
5521
- --_ta-bg-selected: var(--theme-tag-selected-background-color, var(--theme-secondary-300));
5522
- --_ta-fc: var(--theme-tag-color, var(--theme-secondary-500));
5523
- --_ta-fc-hover: var(--theme-tag-hover-color, var(--theme-secondary-600));
5524
- --_ta-fc-selected: var(--theme-tag-selected-color, var(--theme-secondary-600));
5520
+ --_ta-bg-hover: var(--theme-tag-hover-background-color, var(--black-200));
5521
+ --_ta-fc-hover: var(--theme-tag-hover-color, var(--black-600));
5525
5522
  --_ta-br: var(--br-sm);
5526
5523
  --_ta-fs: var(--fs-caption);
5527
5524
  --_ta-lh: 1.84615385;
@@ -5545,24 +5542,9 @@ body.theme-highcontrast .s-sidebarwidget.s-sidebarwidget__green {
5545
5542
  vertical-align: middle;
5546
5543
  white-space: nowrap;
5547
5544
  }
5548
- body.theme-highcontrast .s-tag {
5549
- --_ta-bc: currentColor;
5550
- --_ta-bg-selected: var(--theme-secondary-400);
5551
- text-decoration: none;
5552
- }
5553
- .s-tag.is-selected,
5554
- a.s-tag.is-selected,
5555
- a.s-tag.is-selected:active,
5556
- a.s-tag.is-selected:hover {
5557
- background-color: var(--_ta-bg-selected);
5558
- border-color: var(--_ta-bc-selected);
5559
- color: var(--_ta-fc-selected);
5560
- }
5561
- body.theme-highcontrast .s-tag.is-selected,
5562
- body.theme-highcontrast a.s-tag.is-selected,
5563
- body.theme-highcontrast a.s-tag.is-selected:active,
5564
- body.theme-highcontrast a.s-tag.is-selected:hover {
5565
- --_ta-fc-selected: var(--white);
5545
+ body.theme-highcontrast .s-tag:not(body.theme-highcontrast .s-tag__moderator):not(body.theme-highcontrast .s-tag__required) {
5546
+ --_ta-bc: var(--theme-tag-border-color, var(--black-300));
5547
+ --_ta-bc-hover: var(--theme-tag-hover-border-color, var(--black-300));
5566
5548
  }
5567
5549
  .s-tag.s-tag__xs {
5568
5550
  --_ta-fs: var(--fs-fine);
@@ -5617,38 +5599,14 @@ body.theme-highcontrast a.s-tag.is-selected:hover {
5617
5599
  .s-tag.s-tag__moderator {
5618
5600
  --_ta-bc: var(--orange-300);
5619
5601
  --_ta-bg: var(--orange-100);
5620
- --_ta-fc: var(--orange-600);
5602
+ --_ta-fc: var(--orange-500);
5621
5603
  --_ta-bc-hover: var(--orange-300);
5622
5604
  --_ta-bg-hover: var(--orange-200);
5623
5605
  --_ta-fc-hover: var(--orange-600);
5624
- --_ta-bc-selected: var(--orange-400);
5625
- --_ta-bg-selected: var(--orange-300);
5626
- --_ta-fc-selected: var(--orange-600);
5627
- }
5628
- body.theme-highcontrast .s-tag.s-tag__moderator {
5629
- --_ta-bg-selected: var(--orange-500);
5630
- }
5631
- .s-tag.s-tag__muted:not(.s-tag__moderator):not(.s-tag__required) {
5632
- --_ta-bg: var(--black-150);
5633
- --_ta-fc: var(--black-400);
5634
- --_ta-bg-hover: var(--black-200);
5635
- --_ta-fc-hover: var(--black-500);
5636
- --_ta-bg-selected: var(--black-225);
5637
- --_ta-fc-selected: var(--black-600);
5638
- }
5639
- body.theme-highcontrast .s-tag.s-tag__muted:not(.s-tag__moderator):not(.s-tag__required) {
5640
- --_ta-bc: currentColor;
5641
5606
  }
5642
5607
  .s-tag.s-tag__required:not(.s-tag__moderator) {
5643
- --_ta-bc: var(--theme-tag-required-border-color, var(--_ta-bg));
5644
- --_ta-bc-hover: var(--theme-tag-required-hover-border-color, var(--_ta-bg-hover));
5645
- --_ta-bc-selected: var(--theme-tag-required-selected-border-color, var(--_ta-bg-selected));
5646
- --_ta-bg: var(--theme-tag-required-background-color, var(--theme-secondary-500));
5647
- --_ta-bg-hover: var(--theme-tag-required-hover-background-color, var(--theme-secondary-400));
5648
- --_ta-bg-selected: var(--theme-tag-required-selected-background-color, var(--theme-secondary-600));
5649
- --_ta-fc: var(--theme-tag-required-color, var(--white));
5650
- --_ta-fc-hover: var(--theme-tag-required-hover-color, var(--white));
5651
- --_ta-fc-selected: var(--theme-tag-required-selected-color, var(--white));
5608
+ --_ta-bc: var(--black-400);
5609
+ --_ta-bc-hover: var(--black-600);
5652
5610
  }
5653
5611
  .s-tag__watched,
5654
5612
  .s-tag.s-tag__watched {
@@ -5696,16 +5654,12 @@ body.theme-highcontrast .s-tag button.s-tag--dismiss:not(.s-btn):hover {
5696
5654
  width: 100%;
5697
5655
  height: 100%;
5698
5656
  }
5699
- a.s-tag:not(.is-selected):hover,
5700
- a.s-tag:not(.is-selected):active {
5657
+ a.s-tag:hover,
5658
+ a.s-tag:active {
5701
5659
  background-color: var(--_ta-bg-hover);
5702
5660
  border-color: var(--_ta-bc-hover);
5703
5661
  color: var(--_ta-fc-hover);
5704
5662
  }
5705
- body.theme-highcontrast a.s-tag:not(.is-selected):hover,
5706
- body.theme-highcontrast a.s-tag:not(.is-selected):active {
5707
- border-color: currentColor;
5708
- }
5709
5663
  .s-tag:focus-visible {
5710
5664
  border-color: var(--focus-neutral) !important;
5711
5665
  box-shadow: 0 0 0 var(--su-static1) var(--focus-neutral), 0 0 0 calc(var(--su-static4) - var(--su-static1)) var(--focus-theme);