diff --git a/app/assets/javascripts/components/AutocompleteTagInput.tsx b/app/assets/javascripts/components/AutocompleteTagInput.tsx index d4469d64c..9ae7e7ca5 100644 --- a/app/assets/javascripts/components/AutocompleteTagInput.tsx +++ b/app/assets/javascripts/components/AutocompleteTagInput.tsx @@ -6,7 +6,6 @@ import { Icon } from './Icon'; import { Disclosure, DisclosurePanel } from '@reach/disclosure'; import { useCloseOnBlur } from './utils'; import { AppState } from '@/ui_models/app_state'; -import { Tag } from './Tag'; type Props = { application: WebApplication; @@ -142,7 +141,12 @@ export const AutocompleteTagInput: FunctionalComponent = ({ Create new tag: - + + + {searchQuery} + )} diff --git a/app/assets/javascripts/components/NoteTags.tsx b/app/assets/javascripts/components/NoteTags.tsx index f91bcc509..2c32909cc 100644 --- a/app/assets/javascripts/components/NoteTags.tsx +++ b/app/assets/javascripts/components/NoteTags.tsx @@ -1,7 +1,7 @@ import { AppState } from '@/ui_models/app_state'; import { observer } from 'mobx-react-lite'; import { toDirective } from './utils'; -import { Tag } from './Tag'; +import { Icon } from './Icon'; import { AutocompleteTagInput } from './AutocompleteTagInput'; import { WebApplication } from '@/ui_models/application'; @@ -14,7 +14,13 @@ const NoteTags = observer(({ application, appState }: Props) => { return (
{appState.notes.activeNoteTags.map((tag) => ( - + ))}
diff --git a/app/assets/javascripts/components/Tag.tsx b/app/assets/javascripts/components/Tag.tsx deleted file mode 100644 index 37b370056..000000000 --- a/app/assets/javascripts/components/Tag.tsx +++ /dev/null @@ -1,16 +0,0 @@ -import { FunctionalComponent } from 'preact'; -import { Icon } from './Icon'; - -type TagProps = { - title: string; - className?: string; -}; - -export const Tag: FunctionalComponent = ({ title, className }) => ( - - - {title} - -); diff --git a/app/assets/stylesheets/_sn.scss b/app/assets/stylesheets/_sn.scss index c819eca91..839edf5cf 100644 --- a/app/assets/stylesheets/_sn.scss +++ b/app/assets/stylesheets/_sn.scss @@ -102,6 +102,14 @@ @extend .color-text; } +.hover\:bg-secondary-contrast:hover { + @extend .bg-secondary-contrast; +} + +.focus\:bg-secondary-contrast:focus { + @extend .bg-secondary-contrast; +} + .focus\:inner-ring-info:focus { @extend .inner-ring-info; }