Skip to content

Commit

Permalink
chore: Upgrade biomejs (#693)
Browse files Browse the repository at this point in the history
* chore: Update biome

* chore: Add missing svg titles

* Correct calculation of font size
  • Loading branch information
manzt authored Sep 24, 2024
1 parent 9a4e48d commit d4c70e1
Show file tree
Hide file tree
Showing 7 changed files with 49 additions and 50 deletions.
2 changes: 1 addition & 1 deletion docs/src/components/Header/LanguageSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ const LanguageSelect: FunctionComponent<{ lang: string }> = ({ lang }) => {
return (
<div className="language-select-wrapper">
<svg
aria-hidden="true"
focusable="false"
role="img"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 88.6 77.3"
height="1.2em"
width="1.2em"
>
<title>Language Selector</title>
<path
fill="currentColor"
d="M61,24.6h7.9l18.7,51.6h-7.7l-5.4-15.5H54.3l-5.6,15.5h-7.2L61,24.6z M72.6,55l-8-22.8L56.3,55H72.6z"
Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/Header/Search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ export default function Search() {
viewBox="0 0 24 24"
fill="none"
focusable="false"
aria-hidden="true"
role="img"
>
<title>Search</title>
<path
d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"
stroke="currentColor"
Expand Down
4 changes: 1 addition & 3 deletions docs/src/components/Header/ThemeToggleButton.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@

.theme-toggle > label:focus-within {
outline: 2px solid transparent;
box-shadow:
0 0 0 0.08em var(--theme-accent),
0 0 0 0.12em white;
box-shadow: 0 0 0 0.08em var(--theme-accent), 0 0 0 0.12em white;
}

.theme-toggle > label {
Expand Down
7 changes: 3 additions & 4 deletions docs/src/styles/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ body::-webkit-scrollbar-track {
}

:root {
--user-font-scale: 1rem - 16px;
--user-font-scale: calc(1rem - 16px);
--max-width: calc(100% - 1rem);
}

Expand Down Expand Up @@ -339,9 +339,8 @@ h2.heading {

.header-link {
font-size: 1em;
transition:
border-inline-start-color 100ms ease-out,
background-color 200ms ease-out;
transition: border-inline-start-color 100ms ease-out, background-color 200ms
ease-out;
border-left: 4px solid var(--theme-divider);
}

Expand Down
6 changes: 4 additions & 2 deletions docs/src/styles/theme.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
:root {
--font-fallback: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial,
--font-fallback:
-apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial,
sans-serif, Apple Color Emoji, Segoe UI Emoji;
--font-body: system-ui, var(--font-fallback);
--font-mono: "IBM Plex Mono", Consolas, "Andale Mono WT", "Andale Mono",
--font-mono:
"IBM Plex Mono", Consolas, "Andale Mono WT", "Andale Mono",
"Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono",
"Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", Monaco,
"Courier New", Courier, monospace;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"publint": "pnpm --recursive --filter=\"./packages/**\" exec publint"
},
"devDependencies": {
"@biomejs/biome": "^1.8.3",
"@biomejs/biome": "^1.9.2",
"@changesets/cli": "^2.27.8",
"@rspack/cli": "^1.0.3",
"@rspack/core": "^1.0.3",
Expand Down
76 changes: 38 additions & 38 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d4c70e1

Please sign in to comment.