Skip to content

Commit

Permalink
feat: focus styles
Browse files Browse the repository at this point in the history
  • Loading branch information
g-saracca committed Dec 19, 2024
1 parent db0c3b6 commit c6a069a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@
border: solid 1px $dv-border-color;
border-radius: 6px;

&:focus,
&:focus-within {
border-color: color.adjust($dv-primary-color, $alpha: -0.4);
outline: 0;
box-shadow: 0 0 0 0.25rem color.adjust($dv-primary-color, $alpha: -0.75);
}

.editor-content-wrapper {
display: flex;
flex: 1;
Expand All @@ -29,9 +36,9 @@
}

&.ProseMirror-focused {
border-color: #99bddb;
border-color: color.adjust($dv-primary-color, $alpha: -0.4);
outline: 0;
box-shadow: 0 0 0 0.25rem rgba(51 122 183 / 25%);
box-shadow: 0 0 0 0.25rem color.adjust($dv-primary-color, $alpha: -0.75);
}

p.is-editor-empty:first-child::before {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@
display: none;
}

&:focus-within {
border-color: color.adjust($dv-primary-color, $alpha: -0.4);
outline: 0;
box-shadow: 0 0 0 0.25rem color.adjust($dv-primary-color, $alpha: -0.75);
}

.image-actions {
position: absolute;
top: 4px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ interface FeaturedItemFieldProps {
initialImageUrl?: string
}

// TODO:ME - Image field focus whithin styles

export const FeaturedItemField = ({
id,
itemIndex,
Expand Down

0 comments on commit c6a069a

Please sign in to comment.