Replace CSS class with data-testid

This commit is contained in:
0x1eef 2024-05-30 05:02:08 -03:00
parent dba72d5968
commit 95a8aab690
2 changed files with 3 additions and 2 deletions

View file

@ -27,7 +27,7 @@ body .root .content.theme {
}
@media(hover: none) {
.right-arrow, .surah-index-filter {
.right-arrow, input[data-testid="SurahIndex/Filter"] {
display: none;
}
}

View file

@ -27,7 +27,8 @@ export function Filter({ locale, t, setIndex, surahs }: Props) {
return (
<input
className="p-3 h-2 text-base color-primary rounded outline-0 surah-index-filter"
data-testid="SurahIndex/Filter"
className="p-3 h-2 text-base color-primary rounded outline-0"
type="text"
placeholder={t(locale, "filter")}
onChange={onInput}