Skip to content

Commit

Permalink
fix(clipboard): input cursor icon copy
Browse files Browse the repository at this point in the history
  • Loading branch information
aesteves60 authored and dpellier committed Aug 3, 2023
1 parent db341cd commit 75f2762
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
osds-input {
cursor: pointer;
--ods-input-cursor: pointer;
--ods-input-icon-cursor: pointer;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export class OsdsClipboard implements OdsClipboard<OdsStencilMethods<OdsClipboar
this.controller.handlerClick(this.value);
}

handlerKeydown(event: KeyboardEvent): void {
handlerKeyDown(event: KeyboardEvent): void {
switch (event.code) {
case 'Space':
case 'Enter':
Expand All @@ -62,7 +62,7 @@ export class OsdsClipboard implements OdsClipboard<OdsStencilMethods<OdsClipboar
type={ OdsInputType.text }
value={ this.value }
onClick={ () => this.handlerClick() }
onKeydown={ (event: KeyboardEvent) => this.handlerKeydown(event) }
onKeyDown={ (event: KeyboardEvent) => this.handlerKeyDown(event) }
>
</osds-input>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
}

:host(:not([disabled])) osds-icon {
cursor: default;
cursor: var(--ods-input-icon-cursor, default);
}

:host osds-icon[name=close],
Expand Down

0 comments on commit 75f2762

Please sign in to comment.