Codehighlight fixes
parent
62b980d0da
commit
1fce27abb7
|
@ -5,7 +5,7 @@
|
||||||
space key as well to trigger.
|
space key as well to trigger.
|
||||||
</p>
|
</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<pre v-code.script><code>
|
<pre v-code><code>
|
||||||
<button @click="onButtonClick(event)">Click</button>
|
<button @click="onButtonClick(event)">Click</button>
|
||||||
|
|
||||||
</code></pre>
|
</code></pre>
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
<div class="doc-section-description">
|
<div class="doc-section-description">
|
||||||
<p>On the other hand, a fancy css based button using a div has no keyboard or screen reader support.</p>
|
<p>On the other hand, a fancy css based button using a div has no keyboard or screen reader support.</p>
|
||||||
</div>
|
</div>
|
||||||
<pre v-code.script><code>
|
<pre v-code><code>
|
||||||
<div class="fancy-button" @click="onButtonClick(event)">Click</div>
|
<div class="fancy-button" @click="onButtonClick(event)">Click</div>
|
||||||
|
|
||||||
</code></pre>
|
</code></pre>
|
||||||
|
@ -24,7 +24,7 @@
|
||||||
controls should be preferred.
|
controls should be preferred.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<pre v-code.script><code>
|
<pre v-code><code>
|
||||||
<div class="fancy-button" @click="onClick(event)" @keydown="onKeyDown(event)" tabindex="0">Click</div>
|
<div class="fancy-button" @click="onClick(event)" @keydown="onKeyDown(event)" tabindex="0">Click</div>
|
||||||
|
|
||||||
</code></pre>
|
</code></pre>
|
||||||
|
@ -32,7 +32,7 @@
|
||||||
<div class="doc-section-description">
|
<div class="doc-section-description">
|
||||||
<p>Form components must be related to another element that describes what the form element is used for. This is usually achieved with the <i>label</i> element.</p>
|
<p>Form components must be related to another element that describes what the form element is used for. This is usually achieved with the <i>label</i> element.</p>
|
||||||
</div>
|
</div>
|
||||||
<pre v-code.script><code>
|
<pre v-code><code>
|
||||||
<label for="myinput">Username:</label>
|
<label for="myinput">Username:</label>
|
||||||
<input id="myinput" type="text" name="username" />
|
<input id="myinput" type="text" name="username" />
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
</p>
|
</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
|
|
||||||
<pre v-code.script><code>
|
<pre v-code><code>
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<div class="header-text">Header</div>
|
<div class="header-text">Header</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -29,7 +29,7 @@
|
||||||
<div class="doc-section-description">
|
<div class="doc-section-description">
|
||||||
<p>Same layout can be achieved using the semantic elements with screen reader support built-in.</p>
|
<p>Same layout can be achieved using the semantic elements with screen reader support built-in.</p>
|
||||||
</div>
|
</div>
|
||||||
<pre v-code.script><code>
|
<pre v-code><code>
|
||||||
<header>
|
<header>
|
||||||
<h1>Header</h1>
|
<h1>Header</h1>
|
||||||
</header>
|
</header>
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
<p>Consider the following case of a native checkbox. It has built-in keyboard and screen reader support.</p>
|
<p>Consider the following case of a native checkbox. It has built-in keyboard and screen reader support.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
|
|
||||||
<pre v-code.script><code>
|
<pre v-code><code>
|
||||||
<input type="checkbox" value="Prime" name="ui" checked>
|
<input type="checkbox" value="Prime" name="ui" checked>
|
||||||
|
|
||||||
</code></pre>
|
</code></pre>
|
||||||
|
@ -24,7 +24,7 @@
|
||||||
read by a reader.
|
read by a reader.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<pre v-code.script><code>
|
<pre v-code><code>
|
||||||
<div class="fancy-checkbox">
|
<div class="fancy-checkbox">
|
||||||
<i class="checked-icon" v-if="checked"></i>
|
<i class="checked-icon" v-if="checked"></i>
|
||||||
</div>
|
</div>
|
||||||
|
@ -34,7 +34,7 @@
|
||||||
<div class="doc-section-description">
|
<div class="doc-section-description">
|
||||||
<p>One alternative is using ARIA roles for readers and use javascript for keyboard support. Notice the usage of <i>aria-labelledby</i> as a replacement of the <i>label</i> tag with for.</p>
|
<p>One alternative is using ARIA roles for readers and use javascript for keyboard support. Notice the usage of <i>aria-labelledby</i> as a replacement of the <i>label</i> tag with for.</p>
|
||||||
</div>
|
</div>
|
||||||
<pre v-code.script><code>
|
<pre v-code><code>
|
||||||
<span id="chk-label">Remember Me</span>
|
<span id="chk-label">Remember Me</span>
|
||||||
<div class="fancy-checkbox" role="checkbox" aria-checked="false" tabindex="0" aria-labelledby="chk-label"
|
<div class="fancy-checkbox" role="checkbox" aria-checked="false" tabindex="0" aria-labelledby="chk-label"
|
||||||
@click="toggle" @keydown="onKeyDown(event)">
|
@click="toggle" @keydown="onKeyDown(event)">
|
||||||
|
@ -50,7 +50,7 @@
|
||||||
that hides the elements from the user but not from the screen reader.
|
that hides the elements from the user but not from the screen reader.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<pre v-code.script><code>
|
<pre v-code><code>
|
||||||
<label for="chkbox">Remember Me</label>
|
<label for="chkbox">Remember Me</label>
|
||||||
<div class="fancy-checkbox" @click="toggle">
|
<div class="fancy-checkbox" @click="toggle">
|
||||||
<input class="p-sr-only" type="checkbox" id="chkbox" @focus="updateParentVisuals" @blur="updateParentVisuals"
|
<input class="p-sr-only" type="checkbox" id="chkbox" @focus="updateParentVisuals" @blur="updateParentVisuals"
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
<InputText :class="$style.myinput" placeholder="Search" />
|
<InputText :class="$style.myinput" placeholder="Search" />
|
||||||
</div>
|
</div>
|
||||||
<DocSectionCode :code="code1" hideToggleCode importCode hideCodeSandbox hideStackBlitz />
|
<DocSectionCode :code="code1" hideToggleCode importCode hideCodeSandbox hideStackBlitz />
|
||||||
<DocSectionCode :code="code2" hideToggleCode importCode hideCodeSandbox hideStackBlitz />
|
<DocSectionCode :code="code2" hideToggleCode hideCodeSandbox hideStackBlitz />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
<Button type="button" label="Button 2" severity="secondary"></Button>
|
<Button type="button" label="Button 2" severity="secondary"></Button>
|
||||||
<Button type="button" label="Button 3" severity="help"></Button>
|
<Button type="button" label="Button 3" severity="help"></Button>
|
||||||
</div>
|
</div>
|
||||||
<DocSectionCode :code="code" hideToggleCode importCode hideCodeSandbox hideStackBlitz />
|
<DocSectionCode :code="code" hideToggleCode hideCodeSandbox hideStackBlitz />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
</Panel>
|
</Panel>
|
||||||
</div>
|
</div>
|
||||||
<DocSectionCode :code="code1" hideToggleCode importCode hideCodeSandbox hideStackBlitz />
|
<DocSectionCode :code="code1" hideToggleCode importCode hideCodeSandbox hideStackBlitz />
|
||||||
<DocSectionCode :code="code2" hideToggleCode importCode hideCodeSandbox hideStackBlitz />
|
<DocSectionCode :code="code2" hideToggleCode hideCodeSandbox hideStackBlitz />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
<div class="doc-section-description">
|
<div class="doc-section-description">
|
||||||
<p>In a Vite based project like <a href="https://github.com/vuejs/create-vue">create-vue</a>, the link can be placed at index.html.</p>
|
<p>In a Vite based project like <a href="https://github.com/vuejs/create-vue">create-vue</a>, the link can be placed at index.html.</p>
|
||||||
</div>
|
</div>
|
||||||
<DocSectionCode :code="code4" hideToggleCode importCode hideCodeSandbox hideStackBlitz />
|
<DocSectionCode :code="code4" hideToggleCode hideCodeSandbox hideStackBlitz />
|
||||||
<div class="doc-section-description">
|
<div class="doc-section-description">
|
||||||
<p><a href="https://nuxtjs.org/">Nuxt</a> applications can configure the link element using <i>nuxt.config.js</i>.</p>
|
<p><a href="https://nuxtjs.org/">Nuxt</a> applications can configure the link element using <i>nuxt.config.js</i>.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue