Releases: freeCodeCamp/ui
Releases · freeCodeCamp/ui
v4.2.0
What's Changed
- feat(button): add disabled styles for danger variant by @Sembauke in #518
- fix(tabs): correct props interfaces of TabsTrigger and TabsList by @mr-nobody-7 in #597
New Contributors
- @mr-nobody-7 made their first contribution in #597
Full Changelog: v4.1.0...v4.2.0
v4.1.0
What's Changed
- feat(PrismFormatted): support sass and scss by @shootermv in #543
- feat(color): Add orange30 to the color palette by @krasnoff in #570
- feat(quiz): allow revealing correct answers on success by @huyenltnguyen in #487
- feat: export UseQuizResult and UseQuizProps interfaces by @krasnoff in #571
- feat(color): add green80 and yellow80 to color palette by @Priyesh1311421 in #588
- chore: upgrade node and pnpm versions by @huyenltnguyen in #584
- fix(alert, callout): change text color of Alert and Callout by @Priyesh1311421 in #591
New Contributors
- @krasnoff made their first contribution in #570
- @Priyesh1311421 made their first contribution in #588
Full Changelog: v4.0.1...v4.1.0
v4.0.1
What's Changed
- fix(base.css): remove bold font-weight from base styles by @Sembauke in #530
- fix(control-label): set font weight to bold by @Sembauke in #529
- fix(Quiz): remove marker from list items by @huyenltnguyen in #531
Full Changelog: v4.0.0...v4.0.1
v4.0.0
What's Changed
- feat(storybook): add fCC favicon by @huyenltnguyen in #512
- feat(col): add support for extra small column size (4) by @Sembauke in #520
- chore: add additional global CSS by @a2937 in #466
- refactor(quiz): rename passingGrade to passingPercent for clarity by @Sembauke in #519
- refactor(col): remove smPush prop and related logic by @Sembauke in #521
Breaking Changes
- Additional CSS styles were added to the default stylesheet (
base.css
), which could break the layout of some consumers. The exact changes can be found here: #466 useQuiz
hook: Renamed thepassingGrade
prop topassingPercent
Col
component: Removed thesmPush
prop
Full Changelog: v3.2.0...v4.0.0
v3.2.0
What's Changed
- feat: add jsx to babel highlight by @a2937 in #450
- feat: add json to babel highlight by @a2937 in #454
- feat: Enable Bash syntax highlighting by @sulaiman-dev in #464
- chore: move storybook config files to use typescript by @shootermv in #374
- fix: Color System page by @huyenltnguyen in #482
- chore(storybook): remove redundant postcss-loader config by @shootermv in #485
- chore: remove
validation
prop from QuizQuestion code snippets by @shootermv in #492
New Contributors
- @sulaiman-dev made their first contribution in #464
Full Changelog: v3.1.1...v3.2.0
v3.1.1
What's Changed
- fix: quiz answer content overflow by @LaurenRenaeCampbell in #440
New Contributors
- @LaurenRenaeCampbell made their first contribution in #440
Full Changelog: v3.1.0...v3.1.1
v3.1.0
What's Changed
- feat: add data-value attribute to QuizQuestion answer by @huyenltnguyen in #390
- chore: add prepublishOnly script by @huyenltnguyen in #344
- fix: display quiz correct count on demo by @a2937 in #377
- fix: adjust space between quiz questions by @huyenltnguyen in #405
- test: add proper classes to container story by @shootermv in #410
New Contributors
- @shootermv made their first contribution in #410
Full Changelog: v3.0.0...v3.1.0
v3.0.0
What's Changed
- fix: update background color by @a2937 in #375
- fix: add radio option color class by @a2937 in #376
- feat: allow customizing passing grade by @huyenltnguyen in #382
- feat: support displaying quiz answer feedback by @huyenltnguyen in #356
Breaking Changes
useQuiz
now requires apassingGrade
prop- The value of
correctAnswerCount
returned fromuseQuiz
can beundefined
instead of always being a number. Theundefined
value indicates that the quiz has not been validated (thevalidateAnswer
function hasn't been called) QuizQuestion
no longer accepts avalidation
prop. The prop is now folded into theQuizQuestion
'sanswers
prop.- Old:
<QuizQuestion question="Lorem ipsum" answers={[ { label: "Option 1", value: 1 }, { label: "Option 2", value: 2 }, ]} selectedAnswer={1} validation={{ state: "correct", message: "Correct!" }} />
- New:
<QuizQuestion question="Lorem ipsum" answers={[ { label: "Option 1", value: 1, validation: { state: "correct", message: "Correct!" } }, { label: "Option 2", value: 2 }, ]} selectedAnswer={1} />
- Old:
Full Changelog: v2.3.1...v3.0.0
v2.3.1
What's Changed
- fix: remove default text color in
p
by @huyenltnguyen in #370
Full Changelog: v2.3.0...v2.3.1
v2.3.0
What's Changed
- fix: move validation status to the selected answer by @huyenltnguyen in #358
- refactor: initialize questions directly by @ojeytonwilliams in #364
- feat: allow quiz answer value to have string type by @huyenltnguyen in #365
Full Changelog: v2.2.0...v2.3.0