Skip to content

Commit

Permalink
fix: focus offset added for checkbox and buttons
Browse files Browse the repository at this point in the history
Related to: camunda-modeler #4632
  • Loading branch information
abdul99ahad authored and nikku committed Dec 5, 2024
1 parent 4c8cd86 commit 5b91c48
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/assets/properties-panel.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
--color-blue-205-100-35: hsl(205, 100%, 35%);
--color-blue-205-100-45: hsl(205, 100%, 45%);
--color-blue-205-100-50: hsl(205, 100%, 50%);
--color-blue-205-100-40: hsl(205, 100%, 40%);
--color-blue-205-100-85: hsl(205, 100%, 85%);
--color-blue-205-100-95: hsl(205, 100%, 95%);
--color-blue-219-99-53: hsl(219, 99%, 53%);
Expand Down Expand Up @@ -78,6 +79,7 @@

--input-focus-background-color: var(--color-blue-205-100-95);
--input-focus-border-color: var(--color-blue-205-100-50);
--focus-outline-color: var(--color-blue-205-100-40);

--input-error-background-color: var(--color-red-360-100-97);
--input-error-border-color: var(--color-red-360-100-45);
Expand Down Expand Up @@ -299,6 +301,11 @@
background: none;
}

.bio-properties-panel-group-header-button:focus {
outline-offset: 2px;
outline-color: var(--focus-outline-color);
}

.bio-properties-panel-group-header-buttons .bio-properties-panel-group-header-buttons:last-child {
margin-right: 0;
}
Expand Down Expand Up @@ -537,8 +544,9 @@ select.bio-properties-panel-input {
}

.bio-properties-panel-input[type="checkbox"]:focus {
outline: 2px solid var(--input-focus-border-color);
outline-offset: 0;
outline: auto;
outline-color: var(--focus-outline-color);
outline-offset: 2px;
}

.bio-properties-panel-checkbox > .bio-properties-panel-label {
Expand Down

0 comments on commit 5b91c48

Please sign in to comment.