stitch2 0.19.1 → 0.19.2
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/dist/audit.js +3 -0
- package/package.json +1 -1
package/dist/audit.js
CHANGED
|
@@ -125,6 +125,9 @@ export async function audit(opts) {
|
|
|
125
125
|
for (let n = walker.nextNode(); n; n = walker.nextNode()) {
|
|
126
126
|
if (!n.textContent.trim())
|
|
127
127
|
continue;
|
|
128
|
+
// A label allowed two lines on purpose (line-clamp-2: a navigation rail's, under its icon) may wrap.
|
|
129
|
+
if ((parseInt(getComputedStyle(n.parentElement).getPropertyValue('-webkit-line-clamp')) || 0) > 1)
|
|
130
|
+
continue;
|
|
128
131
|
const range = document.createRange();
|
|
129
132
|
range.selectNodeContents(n);
|
|
130
133
|
const tops = [...range.getClientRects()].filter((r) => r.width > 1).map((r) => r.top + r.height / 2);
|
package/package.json
CHANGED