From bc852449ba570ce89dad612777cd5be381450687 Mon Sep 17 00:00:00 2001 From: Michel Santos Date: Fri, 1 Sep 2023 15:44:40 -0300 Subject: [PATCH] fix: fixed isFocus mode outline --- package.json | 2 +- source/components/form/elements/form-control.styl | 2 +- source/components/select/select.styl | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index a3c628d6..aba12057 100755 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@b2wads/grimorio-ui", "sideEffects": false, - "version": "10.1.8-beta", + "version": "10.1.9-beta", "description": "UI just like magic", "main": "lib/index.js", "repository": "https://github.com/b2wads/grimorio-ui", diff --git a/source/components/form/elements/form-control.styl b/source/components/form/elements/form-control.styl index 696126c4..d77216cd 100644 --- a/source/components/form/elements/form-control.styl +++ b/source/components/form/elements/form-control.styl @@ -144,7 +144,7 @@ Form Control Component margin-top: 0; padding: 24px 10px 22px; - &:focus { + &:focus:not(.isDisabled, .has-error, .has-warning) { outline: 1px solid $c-label; border-color: $c-label; color: var(--c-support-dark); diff --git a/source/components/select/select.styl b/source/components/select/select.styl index 75efe6d2..f3de86cd 100644 --- a/source/components/select/select.styl +++ b/source/components/select/select.styl @@ -222,7 +222,7 @@ $field { top: 10px; } - .isFocus { + .isFocus:not(.isDisabled, .has-error, .has-warning) { border-color: $c-blue-1!important; outline: 1px solid $c-blue-1; }