From c3c5282a04572470f382055bafeea29d8dbef5c0 Mon Sep 17 00:00:00 2001 From: dharini Date: Thu, 11 Nov 2021 16:41:08 -0800 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20checkbox=20filter?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -- --- .../rose/dropdown/index.stories.mdx | 5 +- .../rose/form/checkbox/index.stories.mdx | 4 - .../rose/components/dropdown/_item.scss | 78 ++++++++++++------- 3 files changed, 50 insertions(+), 37 deletions(-) diff --git a/addons/rose/addon/components/rose/dropdown/index.stories.mdx b/addons/rose/addon/components/rose/dropdown/index.stories.mdx index 8e3ed3424..f500a672e 100644 --- a/addons/rose/addon/components/rose/dropdown/index.stories.mdx +++ b/addons/rose/addon/components/rose/dropdown/index.stories.mdx @@ -159,7 +159,6 @@ form fields. @@ -186,8 +185,7 @@ form fields. @@ -197,7 +195,6 @@ form fields. context: { inline: boolean('inline', false), disabled: boolean('disabled', false), - outline: boolean('outline', true), items: object('items', [ { id: 1, name: 'Foo' }, { id: 2, name: 'Bar' }, diff --git a/addons/rose/addon/components/rose/form/checkbox/index.stories.mdx b/addons/rose/addon/components/rose/form/checkbox/index.stories.mdx index 42634d7f0..39925964b 100644 --- a/addons/rose/addon/components/rose/form/checkbox/index.stories.mdx +++ b/addons/rose/addon/components/rose/form/checkbox/index.stories.mdx @@ -78,7 +78,6 @@ Renders a form input checkbox. @error={{false}} @disabled={{false}} @inline={{false}} - @outline={{false}} /> ``` @@ -94,7 +93,6 @@ Renders a form input checkbox. @error={{error}} @disabled={{disabled}} @inline={{inline}} - @outline={{outline}} /> `, context: { diff --git a/addons/rose/addon/styles/rose/components/dropdown/_item.scss b/addons/rose/addon/styles/rose/components/dropdown/_item.scss index a3dbf7b9a..6ecf6ff4e 100644 --- a/addons/rose/addon/styles/rose/components/dropdown/_item.scss +++ b/addons/rose/addon/styles/rose/components/dropdown/_item.scss @@ -71,35 +71,29 @@ $checkmark: url("data:image/svg+xml;utf-8,"); + } + } + } + } + &:not(:checked) { + ~ .rose-form-radio-label { &::after { opacity: 0.25; } } } &:checked { - ~ .rose-form-checkbox-label { + ~ .rose-form-radio-label { color: var(--action); + background-color: var(--action-subtler-1h); } } &:disabled { - ~ .rose-form-checkbox-label { + ~ .rose-form-radio-label { opacity: 0.5; } }