Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Komponenty > Vyhľadávanie tlačidlo lupa > neviditeľný focus (2.4.7) #617

Closed
athelas64 opened this issue Oct 7, 2023 · 0 comments · Fixed by slovensko-digital/navody-frontend#146

Comments

@athelas64
Copy link

Focus na tlačidle s lupou nie je viditeľný, lebo tam je nastavený

.sdn-header__form button:focus {
  outline: transparent;
}

Zamerané pole Hľadať (vyzerá to škaredo)
search_focus_field
Zamerané tlačidlo lupa (nie je vôbec vidieť, že je zamerané)
search_focus_button

Navrhované riešenie po úprave:
search_focus_field_fixed
seach_focus_button_fixed

riadky, ktoré nemajú poznámku, sú pôvodné, riadky v komentároch treba odstrániť:

/* .sdn-header__form button:focus {outline: transparent;} */

.sdn-header__form button {
  position:absolute;
/*pridané, aby ohraničenie nepretekalo mimo vstupné pole*/
  top: 3px; 
  right: 3px; 
  bottom: 3px;
  /* width:40px; treba dať prečo, lebo v chrome to rozbíja layout - šírku ohraničenia prispôsobí neviditeľnému slovu Hľadať*/
  padding:0;
  border:0;
  /*border-radius:3px; von, lebo to nechá biele rožky*/
  /*opacity:.5; preč kvôli kontrastu lupy*/
  color: transparent; 
  background:#fff url(/packs/media/images/icon-search.svg) no-repeat 50%;
  background-size:18px 18px
}
mrtineu added a commit to mrtineu/navody-frontend that referenced this issue Apr 27, 2024
Zmena aby pri prehliadaní s tab, aby bola ikonka lupa správne focusnutá

Closes slovensko-digital/navody.digital#617
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant