Skip to content

Commit

Permalink
fix(ui-library): leftclick and browser focus style reset (#638)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianHoffmannS2 authored Nov 22, 2023
1 parent cee87d0 commit 3c8143d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ export const { tokenizedLight: styleCustomLight, tokenizedDark: styleCustomDark

return typeSafeNestedCss/* css */ `
.blr-checkbox {
all: initial;
display: flex;
.input-control {
all: initial;
position: absolute;
Expand Down
6 changes: 5 additions & 1 deletion packages/ui-library/src/components/forms/checkbox/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,11 @@ export class BlrCheckbox extends LitElement {
class="${classes}"
@mouseenter=${this.handleEnter}
@mouseleave=${this.handleLeave}
@mousedown=${this.handlePress}
@mousedown=${(event: MouseEvent) => {
if (event.which === 1) {
this.handlePress();
}
}}
@mouseup=${this.handleRelease}
@touchstart=${this.handlePress}
@touchend=${this.handleRelease}
Expand Down

0 comments on commit 3c8143d

Please sign in to comment.