Skip to content

Commit

Permalink
chore: moved SAFARI_FOCUS_RING_CLASS declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
mizgaionutalexandru committed Nov 14, 2024
1 parent e881498 commit d33732c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions packages/overlay/src/HoverController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,9 @@ import {
InteractionController,
InteractionTypes,
lastInteractionType,
SAFARI_FOCUS_RING_CLASS,
} from './InteractionController.js';

export const SAFARI_FOCUS_RING_CLASS = 'remove-focus-ring-safari-hack';

const HOVER_DELAY = 300;

export class HoverController extends InteractionController {
Expand Down
1 change: 1 addition & 0 deletions packages/overlay/src/InteractionController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export enum InteractionTypes {
}

export const lastInteractionType = Symbol('lastInteractionType');
export const SAFARI_FOCUS_RING_CLASS = 'remove-focus-ring-safari-hack';

export type ControllerOptions = {
overlay?: AbstractOverlay;
Expand Down
1 change: 1 addition & 0 deletions packages/picker/src/InteractionController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export enum InteractionTypes {
'desktop',
'mobile',
}
export const SAFARI_FOCUS_RING_CLASS = 'remove-focus-ring-safari-hack';

export class InteractionController implements ReactiveController {
abortController!: AbortController;
Expand Down
3 changes: 1 addition & 2 deletions packages/picker/src/MobileController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@ governing permissions and limitations under the License.
import {
InteractionController,
InteractionTypes,
SAFARI_FOCUS_RING_CLASS,
} from './InteractionController.js';
import { isWebKit } from '@spectrum-web-components/shared';

export const SAFARI_FOCUS_RING_CLASS = 'remove-focus-ring-safari-hack';

export class MobileController extends InteractionController {
override type = InteractionTypes.mobile;

Expand Down

0 comments on commit d33732c

Please sign in to comment.