@webority/theme 0.51.3 → 0.52.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webority/theme",
3
- "version": "0.51.3",
3
+ "version": "0.52.1",
4
4
  "description": "Webority shared design system — Bootstrap 5.3 SCSS overrides, --wui-* tokens, and shared component CSS. The single source of brand chrome for React portals and Razor sites.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "publishConfig": {
@@ -727,7 +727,8 @@
727
727
  // paints under the opaque cells. A mask also hides what a descendant floats outside the box, so
728
728
  // it stands aside while a menu or picker inside the table is open (an expanded row, which has no
729
729
  // popup, keeps it). A pinned first column never
730
- // fades at the start: it is the part that stays put.
730
+ // fades at the start, and a pinned actions column never fades at the end: they are the parts that
731
+ // stay put.
731
732
  :is(.table-wrap, .table-responsive, [class*="table-responsive-"]) {
732
733
  --wui-overflow-fade-start: 0px;
733
734
  --wui-overflow-fade-end: 0px;
@@ -741,6 +742,9 @@
741
742
  .table-wrap[data-wui-overflow-start]:has(> .wui-table-sticky-first) {
742
743
  --wui-overflow-fade-start: 0px;
743
744
  }
745
+ .table-wrap[data-wui-overflow-end]:has(> .wui-table-sticky-actions) {
746
+ --wui-overflow-fade-end: 0px;
747
+ }
744
748
  :is(.table-wrap, .table-responsive, [class*="table-responsive-"]):is([data-wui-overflow-start], [data-wui-overflow-end]):not(:has([aria-haspopup][aria-expanded="true"], .dropdown-menu.show)) {
745
749
  mask-image: linear-gradient(
746
750
  90deg,
@@ -1052,6 +1056,22 @@
1052
1056
  z-index: 3;
1053
1057
  }
1054
1058
 
1059
+ // Pinned actions column (`stickyActions`): the last column, where the row actions render, holds its
1060
+ // place at the end edge while a wide table scrolls sideways, so the actions never sit past the
1061
+ // card's edge. Found by position for the same reason as the first column: Razor authors write plain
1062
+ // cells. Same surface colour and stacking as the pinned first column.
1063
+ .table-ledger.wui-table-sticky-actions > * > tr:not(.wui-row-expanded) > :last-child {
1064
+ position: sticky;
1065
+ right: 0;
1066
+ z-index: 1;
1067
+ }
1068
+ .table-ledger.wui-table-sticky-actions > :is(tbody, tfoot) > tr:not(.wui-row-expanded) > :last-child {
1069
+ background-color: var(--color-surface);
1070
+ }
1071
+ .table-wrap.wui-table-scroll .table-ledger.wui-table-sticky-actions > thead > tr > :last-child {
1072
+ z-index: 3;
1073
+ }
1074
+
1055
1075
  // Row actions — icon-only buttons replacing a kebab dropdown.
1056
1076
  .u-row-actions {
1057
1077
  display: flex;
@@ -516,11 +516,15 @@
516
516
  color: var(--color-text-subtle);
517
517
  --pw-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Ccircle cx='12' cy='12' r='8.25'/%3E%3C/svg%3E");
518
518
  }
519
- // Met: the bright success fill — a filled circle with a knocked-out check. The rule text takes the
520
- // same fill rather than --color-success-text, a deliberate choice for the brighter look; it sits
521
- // under AA text contrast on a white card.
519
+ // Met: a filled circle with a knocked-out check in the bright success fill. The mark is a graphic
520
+ // (3:1 is enough), but the rule text needs AA, which the bright fill misses on a white card
521
+ // (2.76:1), so the text takes the success text ink (lifted for dark surfaces) and the mark keeps the
522
+ // fill on its own.
523
+ .pw-criteria .pw-rule.met .pw-mark {
524
+ background-color: var(--wui-success-active);
525
+ }
522
526
  .pw-criteria .pw-rule.met {
523
- color: var(--wui-success-active);
527
+ color: var(--color-success-text);
524
528
  --pw-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' fill-rule='evenodd' d='M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Zm4.03-11.28a.9.9 0 0 0-1.32-1.22l-4.02 4.35-1.4-1.5a.9.9 0 1 0-1.32 1.22l2.06 2.22a.9.9 0 0 0 1.32 0l4.68-5.07Z' clip-rule='evenodd'/%3E%3C/svg%3E");
525
529
  }
526
530
  // requirementsPlacement="inline": the same checklist, but in the field under the input and always