Files
zkxw/web-admin/scripts/check-info-tag-barley.mjs
zlwuandCursor 3ceee48c00 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>
2026-10-17 17:08:03 +08:00

18 lines
804 B
JavaScript

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')