Skip to content

Commit 4a84f81

Browse files
committed
feat(ponyfill)!: disable by default and rename
BREAKING CHANGE: - rename module option `isCssPolyfillEnabled` to `isCssPonyfillEnabled` - set module option `isCssPonyfillEnabled` default to `false`
1 parent 26e52bb commit 4a84f81

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,8 @@ isCookieIdVisible: false,
162162
// If css is set to false, you will still be able to access your color variables.
163163
isCssEnabled: true,
164164

165-
// Switch to toggle the css variables polyfill.
166-
isCssPolyfillEnabled: true,
165+
// Switch to toggle the css variables ponyfill.
166+
isCssPonyfillEnabled: false,
167167

168168
// Switch to toggle the separation of cookie name and description in the configuration modal by a dash.
169169
isDashInDescriptionEnabled: true,

src/runtime/components/CookieControl.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ onBeforeMount(async () => {
295295
variables[`cookie-control-${key}`] = `${moduleOptions.colors[key]}`
296296
}
297297
298-
if (moduleOptions.isCssPolyfillEnabled) {
298+
if (moduleOptions.isCssPonyfillEnabled) {
299299
const module = await import('css-vars-ponyfill')
300300
const cssVars = module.default
301301
cssVars({ variables })

src/runtime/types.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export interface ModuleOptions {
7474
isControlButtonEnabled: boolean
7575
isCookieIdVisible: boolean
7676
isCssEnabled: boolean
77-
isCssPolyfillEnabled: boolean
77+
isCssPonyfillEnabled: boolean
7878
isDashInDescriptionEnabled: boolean
7979
isIframeBlocked: boolean | { initialState: boolean }
8080
locales: Locale[]
@@ -121,7 +121,7 @@ export const DEFAULTS: Required<ModuleOptions> = {
121121
isControlButtonEnabled: true,
122122
isCookieIdVisible: false,
123123
isCssEnabled: true,
124-
isCssPolyfillEnabled: true,
124+
isCssPonyfillEnabled: false,
125125
isDashInDescriptionEnabled: true,
126126
isIframeBlocked: false,
127127
domain: '',

0 commit comments

Comments
 (0)