Skip to content
代码片段 群组 项目
提交 9fd32429 编辑于 作者: Paul Gascou-Vaillancourt's avatar Paul Gascou-Vaillancourt
浏览文件

Migrate to Tailwind user-select utilities

上级 775cf8ff
No related branches found
No related tags found
无相关合并请求
......@@ -27,7 +27,7 @@ export default {
<div v-gl-tooltip="tooltip" class="gl-display-inline-block gl-text-secondary gl-mb-3 gl-mr-4">
<gl-icon v-if="icon" :name="icon" :size="12" />
<!-- display tooltip as a label for screen readers and make it unavailable for copying -->
<span class="gl-sr-only gl-user-select-none">{{ tooltip }}</span>
<span class="gl-sr-only gl-select-none">{{ tooltip }}</span>
<slot></slot>
</div>
</template>
......@@ -35,7 +35,7 @@ export default {
<!-- eslint-disable vue/require-v-for-key-->
<pre
class="gl-w-full"
><span v-if="prompt" class="gl-user-select-none">{{ prompt }} </span><template v-for="line in lines">{{ line }}<br class="gl-user-select-none"/></template></pre>
><span v-if="prompt" class="gl-select-none">{{ prompt }} </span><template v-for="line in lines">{{ line }}<br class="gl-select-none"/></template></pre>
<!-- eslint-enable vue/require-v-for-key-->
<clipboard-button :text="clipboard" :title="__('Copy')" />
</div>
......
......@@ -158,13 +158,13 @@ export default {
>
<a
v-if="showBlameLink"
class="gl-user-select-none gl-shadow-none! file-line-blame gl-mx-n2"
class="gl-select-none gl-shadow-none! file-line-blame gl-mx-n2"
:href="`${blamePath}#L${line}`"
></a>
<a
:id="`L${line}`"
:key="line"
class="gl-user-select-none gl-shadow-none! file-line-num"
class="gl-select-none gl-shadow-none! file-line-num"
:href="`#L${line}`"
:data-line-number="line"
@click="scrollToLine(`#LC${line}`)"
......
......@@ -38,12 +38,12 @@ export default {
class="gl-p-0! gl-absolute gl-z-index-3 diff-line-num gl-border-r gl-display-flex line-links line-numbers"
>
<a
class="gl-user-select-none gl-shadow-none! file-line-blame gl-mx-n2 gl-flex-grow-1"
class="gl-select-none gl-shadow-none! file-line-blame gl-mx-n2 gl-flex-grow-1"
:href="`${blamePath}${pageSearchString}#L${number}`"
></a>
<a
:id="`L${number}`"
class="gl-user-select-none gl-shadow-none! file-line-num"
class="gl-select-none gl-shadow-none! file-line-num"
:href="`#L${number}`"
:data-line-number="number"
>
......
......@@ -92,12 +92,12 @@ export default {
class="gl-p-0! gl-z-index-3 diff-line-num gl-border-r gl-display-flex line-links line-numbers"
>
<a
class="gl-user-select-none gl-shadow-none! file-line-blame"
class="gl-select-none gl-shadow-none! file-line-blame"
:href="`${blamePath}${pageSearchString}#L${calculateLineNumber(index)}`"
></a>
<a
:id="`L${calculateLineNumber(index)}`"
class="gl-user-select-none gl-shadow-none! file-line-num"
class="gl-select-none gl-shadow-none! file-line-num"
:href="`#L${calculateLineNumber(index)}`"
:data-line-number="calculateLineNumber(index)"
>
......
......@@ -12,11 +12,11 @@ exports[`Blob Simple Viewer component rendering matches the snapshot 1`] = `
class="diff-line-num gl-display-flex line-links"
>
<a
class="file-line-blame gl-mx-n2 gl-shadow-none! gl-user-select-none"
class="file-line-blame gl-mx-n2 gl-select-none gl-shadow-none!"
href="/blame/foo-bar#L1"
/>
<a
class="file-line-num gl-shadow-none! gl-user-select-none"
class="file-line-num gl-select-none gl-shadow-none!"
data-line-number="1"
href="#L1"
id="reference-0"
......@@ -28,11 +28,11 @@ exports[`Blob Simple Viewer component rendering matches the snapshot 1`] = `
class="diff-line-num gl-display-flex line-links"
>
<a
class="file-line-blame gl-mx-n2 gl-shadow-none! gl-user-select-none"
class="file-line-blame gl-mx-n2 gl-select-none gl-shadow-none!"
href="/blame/foo-bar#L2"
/>
<a
class="file-line-num gl-shadow-none! gl-user-select-none"
class="file-line-num gl-select-none gl-shadow-none!"
data-line-number="2"
href="#L2"
id="reference-1"
......@@ -44,11 +44,11 @@ exports[`Blob Simple Viewer component rendering matches the snapshot 1`] = `
class="diff-line-num gl-display-flex line-links"
>
<a
class="file-line-blame gl-mx-n2 gl-shadow-none! gl-user-select-none"
class="file-line-blame gl-mx-n2 gl-select-none gl-shadow-none!"
href="/blame/foo-bar#L3"
/>
<a
class="file-line-num gl-shadow-none! gl-user-select-none"
class="file-line-num gl-select-none gl-shadow-none!"
data-line-number="3"
href="#L3"
id="reference-2"
......
......@@ -6,11 +6,11 @@ exports[`Chunk component rendering isHighlighted is true renders line numbers 1`
data-testid="line-numbers"
>
<a
class="file-line-blame gl-shadow-none! gl-user-select-none"
class="file-line-blame gl-select-none gl-shadow-none!"
href="some/blame/path.js#L71"
/>
<a
class="file-line-num gl-shadow-none! gl-user-select-none"
class="file-line-num gl-select-none gl-shadow-none!"
data-line-number="71"
href="#L71"
id="reference-0"
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册