Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🔨 FIX: richtext styles #189

Merged
merged 1 commit into from
Jun 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/thick-items-rule.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@tohuhono/puck-rich-text": patch
---

fix dropdown css variables and cursor
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export function Editor({
return (
<div
style={{
cursor: isSelected ? "default" : "grab",
cursor: isSelected ? "auto" : "grab",
pointerEvents: "auto",
}}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ export function ToolbarPlugin({
display: "flex",
gap: "4px",
paddingLeft: "12px",
borderLeft: "1px solid var(--puck-color-grey-4)",
borderLeft: "1px solid var(--puck-color-grey-04)",
marginLeft: "8px",
}}
>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.ToolbarButton {
background: transparent;
border: none;
color: var(--puck-color-grey-8);
color: var(--puck-color-grey-08);
cursor: pointer;
padding: 6px 8px;
border-radius: 4px;
Expand All @@ -13,19 +13,19 @@
}

.ToolbarButton:focus-visible {
outline: 2px solid var(--puck-color-azure-5);
outline: 2px solid var(--puck-color-azure-05);
outline-offset: -2px;
}

@media (hover: hover) {
.ToolbarButton:hover {
background: var(--puck-color-grey-2);
color: var(--puck-color-azure-6);
background: var(--puck-color-grey-02);
color: var(--puck-color-azure-06);
cursor: pointer;
}
}

.ToolbarButton:active {
color: var(--puck-color-azure-7);
color: var(--puck-color-azure-07);
transition: none;
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.DropdownMenu-content {
background: var(--puck-color-grey-0);
background: var(--puck-color-grey-01);
padding: 4px;
border-radius: 8px;
font-size: var(--puck-font-size-xxs);
Expand All @@ -9,7 +9,7 @@
.DropdownMenu-action {
background: transparent;
border: none;
color: var(--puck-color-grey-7);
color: var(--puck-color-grey-07);
cursor: pointer;
padding: 6px 8px;
border-radius: 4px;
Expand All @@ -21,19 +21,19 @@
}

.DropdownMenu-action:focus-visible {
outline: 2px solid var(--puck-color-azure-5);
outline: 2px solid var(--puck-color-azure-05);
outline-offset: -2px;
}

@media (hover: hover) {
.DropdownMenu-action:hover {
background: var(--puck-color-grey-2);
color: var(--puck-color-azure-5);
background: var(--puck-color-grey-02);
color: var(--puck-color-azure-05);
cursor: pointer;
}
}

.DropdownMenu-action:active {
color: var(--puck-color-azure-7);
color: var(--puck-color-azure-07);
transition: none;
}