Skip to content

Commit

Permalink
fix: wysiwyg error state (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasvinclav committed Jan 10, 2023
1 parent d4c9d7c commit 5d0f2ea
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% load i18n %}

<template id="trix-toolbar">
<div class="bg-gray-50 flex flex-row border px-3 py-2 relative rounded-t-md shadow-sm w-full dark:bg-white/[.02] dark:border-gray-700">
<div class="bg-gray-50 flex flex-row border group-[.errors]:border-t-red-600 group-[.errors]:border-x-red-600 px-3 py-2 relative rounded-t-md shadow-sm w-full dark:bg-white/[.02] dark:border-gray-700 dark:group-[.errors]:border-t-red-500 dark:group-[.errors]:border-x-red-500">
<div data-trix-button-group="text-tools" class="bg-white border border-md flex flex-row mr-4 rounded-md shadow-sm dark:bg-gray-900 dark:border-gray-700 dark:text-gray-400">
{% spaceless %}
<button type="button" data-trix-attribute="p" data-trix-key="p" title="{% trans "Paragraph" %}" tabindex="-1" class="border-r cursor-pointer flex items-center h-8 justify-center transition-colors w-8 hover:text-primary-600 dark:border-gray-700">
Expand Down
2 changes: 2 additions & 0 deletions src/unfold/contrib/forms/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"border",
"border-gray-200",
"border-t-0",
"group-[.errors]:border-red-600",
"max-w-none",
"p-4",
"rounded-b-md",
Expand All @@ -16,6 +17,7 @@
"focus:outline-none",
"dark:border-gray-700",
"dark:text-gray-400",
"dark:group-[.errors]:border-red-500",
]


Expand Down
2 changes: 1 addition & 1 deletion src/unfold/static/unfold/css/styles.css

Large diffs are not rendered by default.

0 comments on commit 5d0f2ea

Please sign in to comment.