mirror of
https://github.com/php-flasher/php-flasher.git
synced 2026-03-31 15:07:47 +01:00
add vitest for JS/TS testing with comprehensive test coverage
This commit is contained in:
@@ -104,7 +104,9 @@ export default class FlasherPlugin extends AbstractPlugin {
|
||||
// Apply custom styles
|
||||
Object.entries(options.style).forEach(([key, value]) => {
|
||||
if (value !== undefined && value !== null) {
|
||||
container.style.setProperty(key, String(value))
|
||||
// Convert camelCase to kebab-case for CSS property names
|
||||
const cssKey = key.replace(/([A-Z])/g, '-$1').toLowerCase()
|
||||
container.style.setProperty(cssKey, String(value))
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user