Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
docs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ByeCorps
docs
Commits
89b01763
Commit
89b01763
authored
11 months ago
by
Bye
Browse files
Options
Downloads
Patches
Plain Diff
Why the hell werent these here
parent
f94eea7f
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
patches/@astrojs__starlight@0.25.0.patch
+59
-0
59 additions, 0 deletions
patches/@astrojs__starlight@0.25.0.patch
pnpm-lock.yaml
+5247
-0
5247 additions, 0 deletions
pnpm-lock.yaml
with
5306 additions
and
0 deletions
patches/@astrojs__starlight@0.25.0.patch
0 → 100644
+
59
−
0
View file @
89b01763
diff --git a/user-components/Icon.astro b/user-components/Icon.astro
index 7575cc787022f2d4baed7fe543aa2604e5438c2c..07eccbb21052fed519d094f4eea525d7ec7c69aa 100644
--- a/user-components/Icon.astro
+++ b/user-components/Icon.astro
@@ -1,5 +1,6 @@
---
import { Icons } from '../components/Icons';
+import 'iconify-icon';
interface Props {
name: keyof typeof Icons;
@@ -13,21 +14,37 @@
const { name, label, size = '1em', color } = Astro.props;
const a11yAttrs = label ? ({ 'aria-label': label } as const) : ({ 'aria-hidden': 'true' } as const);
---
-<svg
- {...a11yAttrs}
- class={Astro.props.class}
- width="16"
- height="16"
- viewBox="0 0 24 24"
- fill="currentColor"
- set:html={Icons[name]}
-/>
+{
+ (Icons[name] ?
+ <svg
+ {...a11yAttrs}
+ class={Astro.props.class}
+ width="16"
+ height="16"
+ viewBox="0 0 24 24"
+ fill="currentColor"
+ set:html={Icons[name]}
+ /> :
+ <iconify-icon
+ icon={name}
+ {...a11yAttrs}
+ class={Astro.props.class}
+ width="16"
+ height="16"
+ viewBox="0 0 24 24"
+ fill="currentColor"
+ ></iconify-icon>)
+}
<style define:vars={{ 'sl-icon-color': color, 'sl-icon-size': size }}>
- svg {
+ svg, iconify-icon {
color: var(--sl-icon-color);
font-size: var(--sl-icon-size, 1em);
width: 1em;
height: 1em;
}
+ svg.inline, iconify-icon.inline {
+ display: inline !important;
+ }
</style>
+
This diff is collapsed.
Click to expand it.
pnpm-lock.yaml
0 → 100644
+
5247
−
0
View file @
89b01763
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment