mirror of
https://github.com/documenso/documenso.git
synced 2026-07-15 07:17:09 +10:00
fix: handle hover styling for field containers
This commit is contained in:
@@ -134,6 +134,15 @@ Specific parts of the embed can be targeted with CSS classes for granular stylin
|
||||
| `.embed--WaitingForTurn` | Waiting screen when it is not the user's turn |
|
||||
| `.embed--DocumentCompleted` | Completion screen after signing |
|
||||
| `.field--FieldRootContainer` | Base container for document fields |
|
||||
| `.field--FieldRootContainerHover` | Hover state for document fields |
|
||||
|
||||
<Callout type="info">
|
||||
Fields are rendered onto a canvas, which has no real `:hover` pseudo-class. To
|
||||
style a field's hover state, target the `.field--FieldRootContainerHover` class
|
||||
instead of `:hover`. The properties that take effect on hover are
|
||||
`background-color`, `border-color`, `border-width`, `border-radius` and
|
||||
`opacity`. Any of these you leave unset keep their resting value.
|
||||
</Callout>
|
||||
|
||||
### Field Data Attributes
|
||||
|
||||
@@ -159,6 +168,12 @@ Fields expose data attributes for state-based styling:
|
||||
opacity: 0.2;
|
||||
}
|
||||
|
||||
/* Style the field hover state */
|
||||
.field--FieldRootContainerHover {
|
||||
background-color: rgba(0, 0, 0, 0.04);
|
||||
border-color: var(--primary);
|
||||
}
|
||||
|
||||
/* Custom widget styling */
|
||||
.embed--DocumentWidget {
|
||||
background-color: #ffffff;
|
||||
|
||||
Reference in New Issue
Block a user