From 0c725919059397f6b68f3f468a8e527fabe75c9f Mon Sep 17 00:00:00 2001 From: chris <kokosias@yahoo.gr> Date: Sat, 4 Mar 2023 18:53:39 +0200 Subject: [PATCH] finish drodowns --- .../FillTheGapQuestionService/components/InputComponent.js | 1 + .../src/MatchingService/components/DropDownComponent.js | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/wax-prosemirror-services/src/FillTheGapQuestionService/components/InputComponent.js b/wax-prosemirror-services/src/FillTheGapQuestionService/components/InputComponent.js index 5ae80bcd5..d2ca2d677 100644 --- a/wax-prosemirror-services/src/FillTheGapQuestionService/components/InputComponent.js +++ b/wax-prosemirror-services/src/FillTheGapQuestionService/components/InputComponent.js @@ -52,6 +52,7 @@ export default () => { return ( <AnswerInput + aria-label="answer input" onBlur={saveAnswer} onChange={setAnswerInput} onFocus={onFocus} diff --git a/wax-prosemirror-services/src/MatchingService/components/DropDownComponent.js b/wax-prosemirror-services/src/MatchingService/components/DropDownComponent.js index 11095d073..694e4b762 100644 --- a/wax-prosemirror-services/src/MatchingService/components/DropDownComponent.js +++ b/wax-prosemirror-services/src/MatchingService/components/DropDownComponent.js @@ -16,15 +16,13 @@ import { useOnClickOutside, } from 'wax-prosemirror-core'; -const Wrapper = styled.div` - opacity: ${props => (props.disabled ? '0.4' : '1')}; -`; +const Wrapper = styled.div``; const DropDownButton = styled.button` background: #fff; border: none; color: #000; - cursor: ${props => (props.disabled ? `not-allowed` : `pointer`)}; + cursor: ${props => (props.disabled ? `cursor` : `pointer`)}; display: flex; position: relative; width: 160px; -- GitLab