File tree Expand file tree Collapse file tree 1 file changed +15
-9
lines changed
apps/svelte.dev/src/routes/packages Expand file tree Collapse file tree 1 file changed +15
-9
lines changed Original file line number Diff line number Diff line change 82
82
href ="https://npmjs.org/package/ {pkg .name }"
83
83
target =" _blank"
84
84
rel =" noreferrer"
85
- data-icon =" npm"
86
85
aria-label =" View on npm"
87
86
onclick ={(e ) => e .stopPropagation ()}
88
- ></a >
87
+ >
88
+ <span data-icon =" npm" ></span >
89
+ </a >
89
90
90
91
{#if pkg .repo_url }
91
92
<a
92
93
href ={pkg .repo_url }
93
94
target =" _blank"
94
95
rel =" noreferrer"
95
- data-icon =" github"
96
96
aria-label =" View on GitHub"
97
97
onclick ={(e ) => e .stopPropagation ()}
98
- ></a >
98
+ >
99
+ <span data-icon =" github" ></span >
100
+ </a >
99
101
{/if }
100
102
</span >
101
103
</div >
158
160
position : absolute ;
159
161
right : 1rem ;
160
162
bottom : 1rem ;
163
+
164
+ a {
165
+ width : 1.4rem ;
166
+ height : 1.4rem ;
167
+ }
168
+
169
+ a :focus-visible {
170
+ outline : 2px solid var (--sk-fg-accent );
171
+ }
161
172
}
162
173
163
174
a {
175
186
mask : no-repeat 50% 50% ;
176
187
mask-size : contain ;
177
188
178
- &:focus {
179
- /* TODO use a focus ring instead (right now the mask breaks it) */
180
- background : var (--sk-fg-accent );
181
- }
182
-
183
189
&[data-icon ='star '] {
184
190
mask-image : url (icons/star );
185
191
}
You can’t perform that action at this time.
0 commit comments