Skip to content

Commit 76258f0

Browse files
5.1.2 (#51)
1 parent 371659f commit 76258f0

File tree

8 files changed

+18
-7
lines changed

8 files changed

+18
-7
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Release Notes for Palette
22

3+
## 5.1.2 - 2024-08-20
4+
5+
### Fixed
6+
- Force Tailwind's default font stack across all elements
7+
- Improve contrast in light mode when opened on top of darker elements
8+
39
## 5.1.1 - 2024-04-26
410

511
### Fixed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "trendyminds/craft-palette",
33
"description": "A command palette to easily jump to specific areas within Craft",
44
"type": "craft-plugin",
5-
"version": "5.1.1",
5+
"version": "5.1.2",
66
"keywords": ["palette", "craft", "craft cms", "cmdk", "spotlight", "craft plugin"],
77
"license": "MIT",
88
"authors": [

scripts/Modal.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export default function Modal() {
3333
<div
3434
ref={modal}
3535
className={clsx([
36-
'p-bg-white/70 dark:p-bg-zinc-950/90',
36+
'p-bg-white/95 dark:p-bg-zinc-950/90',
3737
'p-outline-zinc-300 dark:p-outline-zinc-900 p-outline p-outline-1',
3838
'p-border p-border-white dark:p-border-zinc-500',
3939
'p-rounded-lg p-translate-y-24 p-overflow-hidden p-backdrop-blur-xl p-shadow-2xl',

scripts/Result.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ export default function Result({ url, title, subtitle, icon, type, focused }) {
4242
'p-flex p-items-center p-gap-2',
4343
'p-font-sans p-text-sm p-text-zinc-700 dark:p-text-zinc-300 p-no-underline',
4444
'p-px-3 p-py-2.5 p-mx-2 p-rounded-lg',
45-
focused && 'p-bg-zinc-200/75 dark:p-bg-zinc-700/50',
46-
'hover:p-bg-zinc-200/75 dark:hover:p-bg-zinc-700/50'
45+
focused && 'p-bg-zinc-200 dark:p-bg-zinc-700/50',
46+
'hover:p-bg-zinc-200 dark:hover:p-bg-zinc-700/50'
4747
)}
4848
onMouseEnter={() => setFocus(null)}
4949
href={type === 'link' ? url : null}

scripts/SearchBar.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export default function SearchBar({ placeholder = 'Search' }) {
1313
}, [context])
1414

1515
return (
16-
<div className="p-flex p-px-2 p-items-center p-gap-1 p-border-b p-border-zinc-200 dark:p-border-zinc-700">
16+
<div className="p-flex p-px-2 p-items-center p-gap-1 p-border-b p-border-zinc-300 dark:p-border-zinc-700">
1717
{context !== 'ACTIONS' && (
1818
<div>
1919
<button

src/assetbundles/resources/Init.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/assetbundles/resources/palette.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

styles/palette.pcss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
@tailwind base;
22
@tailwind components;
33
@tailwind utilities;
4+
5+
/* Ensure fonts aren't replaced by a site's custom one */
6+
[data-palette] * {
7+
@apply p-font-sans;
8+
}

0 commit comments

Comments
 (0)