@@ -33,7 +33,7 @@ import { useQuizModalContext } from '@CourseBuilderContexts/QuizModalContext';
3333import { type QuizForm } from '@CourseBuilderServices/quiz' ;
3434import { tutorConfig } from '@TutorShared/config/config' ;
3535import { Addons , CURRENT_VIEWPORT } from '@TutorShared/config/constants' ;
36- import { borderRadius , Breakpoint , colorTokens , shadow , spacing } from '@TutorShared/config/styles' ;
36+ import { borderRadius , Breakpoint , colorTokens , spacing } from '@TutorShared/config/styles' ;
3737import { typography } from '@TutorShared/config/typography' ;
3838import For from '@TutorShared/controls/For' ;
3939import Show from '@TutorShared/controls/Show' ;
@@ -475,12 +475,14 @@ const QuestionList = ({ isEditing }: { isEditing: boolean }) => {
475475 < Show when = { contentType !== 'tutor_h5p_quiz' } >
476476 < GenerateQuizWithAi />
477477 </ Show >
478- < button
478+ < Button
479+ type = "button"
480+ size = "small"
479481 data-cy = "add-question"
480- data-add-question-button
481482 ref = { addButtonRef }
482- type = "button"
483483 aria-label = { __ ( 'Add question' , 'tutor' ) }
484+ isIconOnly
485+ icon = { < SVGIcon name = "plus" width = { 20 } height = { 20 } /> }
484486 onClick = { ( ) => {
485487 if ( contentType === 'tutor_h5p_quiz' ) {
486488 showModal ( {
@@ -498,9 +500,7 @@ const QuestionList = ({ isEditing }: { isEditing: boolean }) => {
498500 setIsOpen ( true ) ;
499501 }
500502 } }
501- >
502- < SVGIcon name = "plusSquareBrand" width = { 32 } height = { 32 } />
503- </ button >
503+ />
504504 </ div >
505505 </ div >
506506
@@ -746,46 +746,8 @@ const styles = {
746746 align-items : center;
747747 gap : ${ spacing [ 4 ] } ;
748748
749- [data-add-question-button ],
750- [data-generate-quiz-button ] {
751- ${ styleUtils . resetButton } ;
752- width: 32px;
753- height: 32px;
754- bor der- radius: ${ borderRadius [ 6 ] } ;
755- dis play: inline-flex;
756- align- items: center;
757- justify- content: center;
758-
759- & : focus ,
760- & : active ,
761- & : hover {
762- background : none;
763- }
764-
765- svg {
766- color : ${ colorTokens . action . primary . default } ;
767- width : 100% ;
768- height : 100% ;
769- }
770-
771- & : focus {
772- box-shadow : ${ shadow . focus } ;
773- }
774-
775- : focus-visible {
776- box-shadow : none;
777- outline : 2px solid ${ colorTokens . stroke . brand } ;
778- outline-offset : 1px ;
779- }
780- }
781-
782749 [data-generate-quiz-button ] {
783750 border : 1px solid ${ colorTokens . stroke . divider } ;
784-
785- svg {
786- width : 24px ;
787- height : 24px ;
788- }
789751 }
790752 ` ,
791753 questionList : css `
0 commit comments