Codehighlight fixes

pull/3841/head
Tuğçe Küçükoğlu 2023-03-29 13:45:02 +03:00
parent 62b980d0da
commit 1fce27abb7
7 changed files with 14 additions and 14 deletions

View File

@ -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>
&lt;button @click="onButtonClick(event)"&gt;Click&lt;/button&gt; &lt;button @click="onButtonClick(event)"&gt;Click&lt;/button&gt;
</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>
&lt;div class="fancy-button" @click="onButtonClick(event)"&gt;Click&lt;/div&gt; &lt;div class="fancy-button" @click="onButtonClick(event)"&gt;Click&lt;/div&gt;
</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>
&lt;div class="fancy-button" @click="onClick(event)" @keydown="onKeyDown(event)" tabindex="0"&gt;Click&lt;/div&gt; &lt;div class="fancy-button" @click="onClick(event)" @keydown="onKeyDown(event)" tabindex="0"&gt;Click&lt;/div&gt;
</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>
&lt;label for="myinput"&gt;Username:&lt;/label&gt; &lt;label for="myinput"&gt;Username:&lt;/label&gt;
&lt;input id="myinput" type="text" name="username" /&gt; &lt;input id="myinput" type="text" name="username" /&gt;

View File

@ -6,7 +6,7 @@
</p> </p>
</DocSectionText> </DocSectionText>
<pre v-code.script><code> <pre v-code><code>
&lt;div class="header"&gt; &lt;div class="header"&gt;
&lt;div class="header-text"&gt;Header&lt;/div&gt; &lt;div class="header-text"&gt;Header&lt;/div&gt;
&lt;/div&gt; &lt;/div&gt;
@ -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>
&lt;header&gt; &lt;header&gt;
&lt;h1&gt;Header&lt;/h1&gt; &lt;h1&gt;Header&lt;/h1&gt;
&lt;/header&gt; &lt;/header&gt;

View File

@ -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>
&lt;input type="checkbox" value="Prime" name="ui" checked&gt; &lt;input type="checkbox" value="Prime" name="ui" checked&gt;
</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>
&lt;div class="fancy-checkbox"&gt; &lt;div class="fancy-checkbox"&gt;
&lt;i class="checked-icon" v-if="checked"&gt;&lt;/i&gt; &lt;i class="checked-icon" v-if="checked"&gt;&lt;/i&gt;
&lt;/div&gt; &lt;/div&gt;
@ -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>
&lt;span id="chk-label"&gt;Remember Me&lt;/span&gt; &lt;span id="chk-label"&gt;Remember Me&lt;/span&gt;
&lt;div class="fancy-checkbox" role="checkbox" aria-checked="false" tabindex="0" aria-labelledby="chk-label" &lt;div class="fancy-checkbox" role="checkbox" aria-checked="false" tabindex="0" aria-labelledby="chk-label"
@click="toggle" @keydown="onKeyDown(event)"&gt; @click="toggle" @keydown="onKeyDown(event)"&gt;
@ -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>
&lt;label for="chkbox"&gt;Remember Me&lt;/label&gt; &lt;label for="chkbox"&gt;Remember Me&lt;/label&gt;
&lt;div class="fancy-checkbox" @click="toggle"&gt; &lt;div class="fancy-checkbox" @click="toggle"&gt;
&lt;input class="p-sr-only" type="checkbox" id="chkbox" @focus="updateParentVisuals" @blur="updateParentVisuals" &lt;input class="p-sr-only" type="checkbox" id="chkbox" @focus="updateParentVisuals" @blur="updateParentVisuals"

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>