Skip to content

Commit

Permalink
5.1.2 (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronbushnell authored Aug 20, 2024
1 parent 371659f commit 76258f0
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 7 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Release Notes for Palette

## 5.1.2 - 2024-08-20

### Fixed
- Force Tailwind's default font stack across all elements
- Improve contrast in light mode when opened on top of darker elements

## 5.1.1 - 2024-04-26

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "trendyminds/craft-palette",
"description": "A command palette to easily jump to specific areas within Craft",
"type": "craft-plugin",
"version": "5.1.1",
"version": "5.1.2",
"keywords": ["palette", "craft", "craft cms", "cmdk", "spotlight", "craft plugin"],
"license": "MIT",
"authors": [
Expand Down
2 changes: 1 addition & 1 deletion scripts/Modal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default function Modal() {
<div
ref={modal}
className={clsx([
'p-bg-white/70 dark:p-bg-zinc-950/90',
'p-bg-white/95 dark:p-bg-zinc-950/90',
'p-outline-zinc-300 dark:p-outline-zinc-900 p-outline p-outline-1',
'p-border p-border-white dark:p-border-zinc-500',
'p-rounded-lg p-translate-y-24 p-overflow-hidden p-backdrop-blur-xl p-shadow-2xl',
Expand Down
4 changes: 2 additions & 2 deletions scripts/Result.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ export default function Result({ url, title, subtitle, icon, type, focused }) {
'p-flex p-items-center p-gap-2',
'p-font-sans p-text-sm p-text-zinc-700 dark:p-text-zinc-300 p-no-underline',
'p-px-3 p-py-2.5 p-mx-2 p-rounded-lg',
focused && 'p-bg-zinc-200/75 dark:p-bg-zinc-700/50',
'hover:p-bg-zinc-200/75 dark:hover:p-bg-zinc-700/50'
focused && 'p-bg-zinc-200 dark:p-bg-zinc-700/50',
'hover:p-bg-zinc-200 dark:hover:p-bg-zinc-700/50'
)}
onMouseEnter={() => setFocus(null)}
href={type === 'link' ? url : null}
Expand Down
2 changes: 1 addition & 1 deletion scripts/SearchBar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default function SearchBar({ placeholder = 'Search' }) {
}, [context])

return (
<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">
<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">
{context !== 'ACTIONS' && (
<div>
<button
Expand Down
2 changes: 1 addition & 1 deletion src/assetbundles/resources/Init.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/assetbundles/resources/palette.css

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions styles/palette.pcss
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

/* Ensure fonts aren't replaced by a site's custom one */
[data-palette] * {
@apply p-font-sans;
}

0 comments on commit 76258f0

Please sign in to comment.