优化
This commit is contained in:
+3
-2
@@ -24,8 +24,9 @@
|
|||||||
letter-spacing: 0;
|
letter-spacing: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
button::after {
|
button::after,
|
||||||
border: 0;
|
uni-button::after {
|
||||||
|
border: 0 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
button:focus-visible,
|
button:focus-visible,
|
||||||
|
|||||||
@@ -0,0 +1,10 @@
|
|||||||
|
import test from 'node:test'
|
||||||
|
import assert from 'node:assert/strict'
|
||||||
|
import { readFile } from 'node:fs/promises'
|
||||||
|
|
||||||
|
const styles = await readFile(new URL('../styles/pda.scss', import.meta.url), 'utf8')
|
||||||
|
|
||||||
|
test('H5 uni-button removes the framework pseudo-element border globally', () => {
|
||||||
|
assert.match(styles, /button::after,\s*uni-button::after\s*\{[^}]*border:\s*0 !important;/)
|
||||||
|
assert.match(styles, /button:focus-visible,[\s\S]*?outline:\s*3px solid/)
|
||||||
|
})
|
||||||
Reference in New Issue
Block a user