From 5dc660e20d0f7d0aebc28b0693cb5c5895d352d7 Mon Sep 17 00:00:00 2001 From: Rebeka Dekany <50901361+rebekadekany@users.noreply.github.com> Date: Mon, 22 Jul 2024 10:10:36 +0200 Subject: [PATCH] Merge pull request #19516 from overleaf/rd-form-focus-invalid Partial revert "Match :focus-visible pseudo-class with focused style" GitOrigin-RevId: 1d8af364e3c19f2b3804ab40c36984a9cbd87e3e --- .../web/frontend/stylesheets/components/forms.less | 14 -------------- .../web/frontend/stylesheets/variables/all.less | 4 ---- 2 files changed, 18 deletions(-) diff --git a/services/web/frontend/stylesheets/components/forms.less b/services/web/frontend/stylesheets/components/forms.less index 4ead3895f6..220aa35be8 100755 --- a/services/web/frontend/stylesheets/components/forms.less +++ b/services/web/frontend/stylesheets/components/forms.less @@ -338,20 +338,6 @@ input[type='checkbox'], } } -.form-control:invalid { - &:focus { - border-color: @form-feedback-invalid-color; - box-shadow: @form-feedback-invalid-box-shadow; - } -} - -.form-control[data-ol-dirty]:invalid { - &:focus-visible { - border-color: @form-feedback-invalid-color; - box-shadow: @form-feedback-invalid-box-shadow; - } -} - // Static form control text // // Apply class to a `p` element to make any string of text align with labels in diff --git a/services/web/frontend/stylesheets/variables/all.less b/services/web/frontend/stylesheets/variables/all.less index 05ac78beaf..d70acf2d65 100644 --- a/services/web/frontend/stylesheets/variables/all.less +++ b/services/web/frontend/stylesheets/variables/all.less @@ -277,10 +277,6 @@ //** Border color for textual input addons @input-group-addon-border-color: @input-border; -//** Invalid state of the form input -@form-feedback-invalid-color: @red-50; -@form-feedback-invalid-box-shadow: 0 0 0 2px @red-30; - //== Dropdowns // //## Dropdown menu container and contents.