Skip to content

Commit

Permalink
fix: use tailwind important to override in conditionals
Browse files Browse the repository at this point in the history
  • Loading branch information
Willem-Jaap committed Dec 31, 2023
1 parent 5c4dd44 commit 378d2a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/dashboard/src/components/Element.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ export function Element({ element }: ElementProps) {
"element cursor-default select-none outline-1 outline-offset-[3px] hover:outline",
{ "outline outline-blue-500 cursor-move": isSelected },
{ "outline-dashed": element.tag === "span" },
{ "outline-none cursor-text": isEditing },
{ "!outline-none !cursor-text": isEditing },
)}
id={`element-${element.id}`}
// @ts-expect-error wtf?
Expand Down
4 changes: 2 additions & 2 deletions apps/dashboard/src/components/LeftPanel/ElementRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ export function ElementRow({ element }: ElementRowProps) {
<button
className={clsx(
"flex items-center gap-2 select-none text-gray-600 hover:text-gray-900 w-full",
{ "text-blue-500": selectedElementId === element.id },
{ "text-gray-300": !element.visible },
{ "!text-blue-500": selectedElementId === element.id },
{ "!text-gray-300": !element.visible },
)}
onClick={() => { setSelectedElementId(element.id); }}
onDoubleClick={() => {
Expand Down

0 comments on commit 378d2a7

Please sign in to comment.