Challenge - 5 Problems
Bootstrap Build Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
📝 Syntax
intermediateIdentify the correct Bootstrap build tool command
Which command correctly compiles Bootstrap's SCSS files into CSS using npm scripts?
Bootsrap
npm run build-css
Attempts:
2 left
💡 Hint
Look for the standard npm script syntax to run a script defined in package.json.
✗ Incorrect
The correct way to run a script defined in package.json is 'npm run '. 'npm run build-css' runs the build-css script that compiles SCSS to CSS.
🧠 Conceptual
intermediatePurpose of Bootstrap's package.json file
What is the main role of the package.json file in Bootstrap's build process?
Attempts:
2 left
💡 Hint
Think about what npm uses package.json for in general.
✗ Incorrect
The package.json file defines the dependencies (like Sass, autoprefixer) and scripts (like build commands) needed to build Bootstrap from source.
❓ selector
advancedCorrect CSS output after customizing Bootstrap variables
After changing Bootstrap's SCSS variables and running the build, which CSS output snippet shows the customized primary color applied correctly?
Bootsrap
$primary: #ff5733; // Custom primary color // After build, which CSS snippet is correct?
Attempts:
2 left
💡 Hint
The primary color variable controls the background color of primary buttons.
✗ Incorrect
Changing $primary to #ff5733 updates the .btn-primary background color to that custom value after building the CSS.
❓ layout
advancedEffect of Bootstrap's grid build on responsive layout
Which statement correctly describes how Bootstrap's build tools affect the responsive grid layout?
Attempts:
2 left
💡 Hint
Bootstrap's grid uses CSS media queries for responsiveness.
✗ Incorrect
Bootstrap's build process compiles SCSS variables into CSS with media queries that adjust the grid columns for different screen widths, enabling responsive layouts.
❓ accessibility
expertAccessibility impact of Bootstrap build customization
If you customize Bootstrap's build to change focus outlines and remove default focus styles, what is the likely accessibility impact?
Attempts:
2 left
💡 Hint
Focus outlines help keyboard users know where they are on the page.
✗ Incorrect
Removing or hiding focus outlines can make it hard for keyboard users to see which element is active, harming accessibility. Focus styles are important visual cues.
