From acfbe99a075f74d7ae544dbddacd5b6863d724d8 Mon Sep 17 00:00:00 2001 From: Jay Sitter Date: Sun, 2 Jul 2023 20:44:26 -0400 Subject: [PATCH] fix: Fix focus ring styles for home toggles #1772 --- .../components/common/data-type-select.tsx | 35 ++++++----- .../components/common/listing-type-select.tsx | 62 +++++++++++-------- 2 files changed, 57 insertions(+), 40 deletions(-) diff --git a/src/shared/components/common/data-type-select.tsx b/src/shared/components/common/data-type-select.tsx index 6bf0666c..327baf38 100644 --- a/src/shared/components/common/data-type-select.tsx +++ b/src/shared/components/common/data-type-select.tsx @@ -1,3 +1,4 @@ +import { randomStr } from "@utils/helpers"; import { Component, linkEvent } from "inferno"; import { DataType } from "../../interfaces"; import { I18NextService } from "../../services"; @@ -15,6 +16,8 @@ export class DataTypeSelect extends Component< DataTypeSelectProps, DataTypeSelectState > { + private id = `listing-type-input-${randomStr()}`; + state: DataTypeSelectState = { type_: this.props.type_, }; @@ -32,32 +35,36 @@ export class DataTypeSelect extends Component< render() { return (
+ +
diff --git a/src/shared/components/common/listing-type-select.tsx b/src/shared/components/common/listing-type-select.tsx index 9d0a1b9f..036e1ef0 100644 --- a/src/shared/components/common/listing-type-select.tsx +++ b/src/shared/components/common/listing-type-select.tsx @@ -38,15 +38,12 @@ export class ListingTypeSelect extends Component< render() { return ( -
+
{this.props.showSubscribed && ( - + + )} {this.props.showLocal && ( - + + )} +