Skip to content

Report a problem:

Problems can be reported via Microsoft Teams in your team channel within the "IT - Codey" team.

Please include the following information:

Report type:
Docs problem report a bug instead →
Path:
/vnext/docs/core/modules/cross-browser-support.html
Message:

DESCRIBE THE PROBLEM BEFORE SUBMITTING TO CODEY

Cross-Browser Support

This module provides a plugin to use common cross-browser support code within your application.

Usage

Installation

A CodeyCrossBrowserSupport vue plugin makes it easy to use the scripts that are part of this module. Individual cross-browser support scripts can be used anywhere. Choose whatever works best for your application.

vue
<script setup lang="ts">
import { createApp } from "vue";
import App from "./App.vue";
import { CodeyCrossBrowserSupport } from "@xerius/codey-core/modules/cross-browser-support"; 

const app = createApp(App);
app.use(CodeyCrossBrowserSupport); 
</script>
vue
<script setup lang="ts">
import { createApp } from "vue";
import App from "./App.vue";
import { CodeyCrossBrowserSupport } from "@xerius/codey-core/modules/cross-browser-support"; 

const app = createApp(App);
app.use(CodeyCrossBrowserSupport, {
  disableIOSInputZoom: false, 
}); 
</script>
ts
import { disableIOSInputZoom } from "@xerius/codey-core/modules/cross-browser-support";

const restore = disableIOSInputZoom();

Options

OptionDefaultDescription
disableIOSInputZoomtrueDisables autozoom on input fields with font-size < 16px on iOS.

disableIOSInputZoom

Disables autozoom on input fields with font-size < 16px on iOS.
It does this by changing part of the <meta name="viewport"> value specifically on iOS to achieve best cross-device a11y results.
If the vue app unmounts the initial meta viewport tag will be restored.