@salesforcedevs/docs-components 1.34.3-style-fix-alpha → 1.34.3-style-fix-alpha1

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": "@salesforcedevs/docs-components",
3
- "version": "1.34.3-style-fix-alpha",
3
+ "version": "1.34.3-style-fix-alpha1",
4
4
  "description": "Docs Lightning web components for DSC",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
@@ -75,8 +75,9 @@ dx-button::part(content) {
75
75
  overflow: hidden;
76
76
  }
77
77
 
78
- /* box-sizing: border-box so the 2px hover/focus border doesn't grow the
79
- small variant's 24px box. Tertiary's 1px hover border is overridden. */
78
+ /* Border width stays 1px in every state. Hover, open, and focus paint the
79
+ 2px blue stroke with an inset shadow so the box does not grow.
80
+ Tertiary's hover border is overridden. */
80
81
  .version-picker-button::part(container) {
81
82
  box-sizing: border-box;
82
83
  background: white;
@@ -88,6 +89,8 @@ dx-button::part(content) {
88
89
  }
89
90
 
90
91
  /* Hover only (not open): 2px #032D60 on #EEF4FF, no ring.
92
+ Border color matches the fill so the 1px border does not add a third
93
+ pixel around the inset stroke.
91
94
  :focus-visible is included so click-open + Escape (which upgrades the
92
95
  trigger to keyboard focus) still looks like hover while the pointer is on
93
96
  the picker. */
@@ -96,12 +99,12 @@ dx-button::part(content) {
96
99
  container
97
100
  ):focus-visible {
98
101
  background: var(--dx-g-blue-vibrant-95);
99
- border: 2px solid var(--dx-g-blue-vibrant-20);
100
- box-shadow: none;
102
+ border: 1px solid var(--dx-g-blue-vibrant-95);
103
+ box-shadow: inset 0 0 0 2px var(--dx-g-blue-vibrant-20);
101
104
  }
102
105
 
103
106
  /* Halo lives on the dx-button host so inner tertiary styles / overflow
104
- cannot flatten it. Fill and 2px border stay on the part. */
107
+ cannot flatten it. Fill and the inset stroke stay on the part. */
105
108
  .version-picker-button[aria-expanded="true"] {
106
109
  border-radius: var(--dx-g-spacing-xs);
107
110
  box-shadow: var(--dx-c-version-picker-focus-ring);
@@ -109,9 +112,9 @@ dx-button::part(content) {
109
112
 
110
113
  .version-picker-button[aria-expanded="true"]::part(container) {
111
114
  background: var(--dx-g-blue-vibrant-95);
112
- border: 2px solid var(--dx-g-blue-vibrant-20);
115
+ border: 1px solid var(--dx-g-blue-vibrant-95);
113
116
  border-radius: var(--dx-g-spacing-xs);
114
- box-shadow: none;
117
+ box-shadow: inset 0 0 0 2px var(--dx-g-blue-vibrant-20);
115
118
  }
116
119
 
117
120
  /* Keyboard focus while closed. Open uses the host halo above. */
@@ -121,9 +124,10 @@ dx-button::part(content) {
121
124
  --dx-g-button-icon-color: var(--dx-g-blue-vibrant-20);
122
125
 
123
126
  background: var(--dx-g-blue-vibrant-95);
124
- border: 2px solid var(--dx-g-blue-vibrant-20);
127
+ border: 1px solid var(--dx-g-blue-vibrant-95);
125
128
  border-radius: var(--dx-g-spacing-xs);
126
- box-shadow: var(--dx-c-version-picker-focus-ring);
129
+ box-shadow: inset 0 0 0 2px var(--dx-g-blue-vibrant-20),
130
+ var(--dx-c-version-picker-focus-ring);
127
131
  }
128
132
 
129
133
  .selected-version {