style(web-admin): skin Fresh Mint info tags as barley soft.
Align page/dialog el-tag--info with mobile market neutral tags (#fff7e8 / #9a7020) so storage-service pending states match H5. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
19dffbaa49
commit
3ceee48c00
3 files changed
+39
-2
No files matched your search
@@ -0,0 +1,17 @@
|
||||
import assert from 'node:assert/strict'
|
||||
import fs from 'node:fs'
|
||||
import path from 'node:path'
|
||||
import { fileURLToPath } from 'node:url'
|
||||
|
||||
const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..')
|
||||
const scss = fs.readFileSync(path.join(root, 'src/assets/styles/core/el-ui.scss'), 'utf8')
|
||||
const block = scss.match(
|
||||
/\.page-container \.el-tag--info,[\s\S]*?\.el-dialog \.el-tag--info\s*\{[\s\S]*?\}/
|
||||
)
|
||||
assert.ok(block, 'expected Fresh Mint el-tag--info override block')
|
||||
assert.match(block[0], /background:\s*#fff7e8\s*!important/)
|
||||
assert.match(block[0], /color:\s*#9a7020\s*!important/)
|
||||
assert.match(block[0], /border-color:\s*#f0e0b8\s*!important/)
|
||||
assert.doesNotMatch(block[0], /#f8fafc/)
|
||||
assert.doesNotMatch(block[0], /#64748b/)
|
||||
console.log('ok: web-admin info tag uses barley soft')
|
||||
Reference in new issue
Block a user