diff --git a/src/skills-builder/skills-builder-modal/skillsBuilderModal.scss b/src/skills-builder/skills-builder-modal/skillsBuilderModal.scss index eae2cc9..688c89d 100644 --- a/src/skills-builder/skills-builder-modal/skillsBuilderModal.scss +++ b/src/skills-builder/skills-builder-modal/skillsBuilderModal.scss @@ -19,6 +19,9 @@ $breakpoint-medium: 992px; top: 0.5rem; } } + .overflow-scroll-medium { + overflow: scroll; +} } @media (min-width: $breakpoint-medium) { diff --git a/src/skills-builder/skills-builder-modal/view-results/RelatedSkillsSelectableBoxSet.jsx b/src/skills-builder/skills-builder-modal/view-results/RelatedSkillsSelectableBoxSet.jsx index 255a168..a3009cc 100644 --- a/src/skills-builder/skills-builder-modal/view-results/RelatedSkillsSelectableBoxSet.jsx +++ b/src/skills-builder/skills-builder-modal/view-results/RelatedSkillsSelectableBoxSet.jsx @@ -1,14 +1,13 @@ import React from 'react'; import PropTypes from 'prop-types'; import { - SelectableBox, Chip, Stack, useMediaQuery, breakpoints, + SelectableBox, Chip, Stack, } from '@edx/paragon'; import { useIntl } from '@edx/frontend-platform/i18n'; import messages from './messages'; const RelatedSkillsSelectableBoxSet = ({ jobSkillsList, selectedJobTitle, onChange }) => { const { formatMessage } = useIntl(); - const isExtraSmall = useMediaQuery({ maxWidth: breakpoints.extraSmall.maxWidth }); const renderTopFiveSkills = (skills) => { const topFiveSkills = skills.sort((a, b) => b.significance - a.significance).slice(0, 5); @@ -27,7 +26,8 @@ const RelatedSkillsSelectableBoxSet = ({ jobSkillsList, selectedJobTitle, onChan type="radio" value={selectedJobTitle} onChange={onChange} - columns={isExtraSmall ? 1 : 3} + columns={3} + className="overflow-scroll-medium" > {jobSkillsList.map(job => (