Skip to content

Commit f5ee24c

Browse files
committed
add focus indicator for copy to clipboard buttons
1 parent 864c4af commit f5ee24c

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

resource/css/skosmos.css

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -694,23 +694,23 @@ body {
694694
display: inline;
695695
}
696696

697-
#copy-preflabel .fa-copy {
697+
#copy-preflabel {
698698
color: var(--vocab-text);
699699
font-size: 30px;
700700
position: relative;
701701
bottom: 10px;
702702
left: 5px;
703703
}
704704

705-
#copy-uri .fa-copy {
705+
#copy-uri {
706706
color: var(--vocab-text);
707707
position: relative;
708-
bottom: 3px;
709-
left: -0.6rem;
708+
bottom: 4px;
710709
}
711710

712-
.copy-clipboard, .copy-clipboard:active, .copy-clipboard:focus, .copy-clipboard:active:focus {
713-
border: none;
711+
.copy-clipboard:focus {
712+
border: 1px solid var(--vocab-text);
713+
border-radius: 3px;
714714
}
715715

716716
.property ul, .property li {

src/view/concept-card.inc

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@
3030
<div class="row" id="concept-heading">
3131
<div class="col-sm-4 px-0" id="concept-property-label">{{ "skos:prefLabel" | trans }}</div>
3232
<div class="col-sm-8" id="concept-label">
33-
<h1 id="concept-preflabel" class="mb-0 user-select-all">{{ concept.label }}</h1>
34-
<button class="btn btn-default copy-clipboard px-0" type="button" id="copy-preflabel"
33+
<h1 id="concept-preflabel"
34+
class="mb-0 user-select-all">{{ concept.label }}</h1><button
35+
class="btn btn-default copy-clipboard px-1" type="button" id="copy-preflabel"
3536
data-bs-toggle="tooltip" data-bs-placement="button" title="{{ 'Copy to clipboard' | trans }}">
3637
<i class="fa-regular fa-copy"></i>
3738
</button>
@@ -88,8 +89,9 @@
8889
<div class="row property prop-uri">
8990
<div class="col-sm-4 px-0 property-label"><h2>URI</h2></div>
9091
<div class="col-sm-8">
91-
<span id="concept-uri" class="user-select-all">{{ concept.uri }}</span>
92-
<button class="btn btn-default copy-clipboard" type="button" id="copy-uri"
92+
<span id="concept-uri"
93+
class="user-select-all">{{ concept.uri }}</span><button
94+
class="btn btn-default copy-clipboard px-1" type="button" id="copy-uri"
9395
data-bs-toggle="tooltip" data-bs-placement="button" title="{{ 'Copy to clipboard' | trans }}">
9496
<i class="fa-regular fa-copy"></i>
9597
</button>

0 commit comments

Comments
 (0)