Recap: Accessible Details
Part of the Responsive UI Patterns section of Coddy's Tailwind CSS journey. Lesson 50 of 55.
Challenge
HardBuild the supplied direction-aware action bar. Give it 20px inline-start and 8px inline-end padding, following both LTR and RTL. Both native controls need minimum 44px width and height with flex-centered labels. Reserve is initially disabled and uses 50% opacity with a not-allowed cursor; the supplied toggle enables it and restores full opacity with a pointer cursor. Preserve button labels and behavior.
Preserve the supplied content, semantic elements and IDs. Edit the requested utility classes. Press Run preview after edits, then Check/Run code to grade the result. Supplied JavaScript is read-only.
Try it yourself
<!doctype html>
<html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Interface workshop</title><link rel="stylesheet" href="./styles.css"></head><body>
<button id="flip">Change direction</button><button id="toggle">Change availability</button><nav id="panel" dir="ltr" aria-label="Booking actions" class="flex gap-3 px-0"><button id="back" class="inline-block">Back</button><button id="reserve" disabled class="inline-block opacity-100 cursor-pointer">Reserve</button></nav>
<script src="./controls.js"></script>
</body></html>
All lessons in Responsive UI Patterns
1Page Shells
Growing Page ShellsFlexible Content RailsBounded Scroll RegionsFull-Bleed RegionsRecap: Page Shells4Form Layouts
Responsive Field GroupsFocused Field GroupsSelectable Form OptionsNative Validation CuesRecap: Form Layouts7Intrinsic Layouts
Auto-Fitting CollectionsResilient Label RowsMulti-Line PreviewsReadable Long TokensRecap: Intrinsic Layouts10Accessible Details
Direction-Aware SpacingComfortable Control TargetsVisible Keyboard FocusUnavailable Action StatesRecap: Accessible Details2Navigation Patterns
Wrapping NavigationCurrent Page CuesNative Menu DisclosuresKeyboard Skip LinksRecap: Navigation5Data Tables
Scrollable Data TablesPredictable Table ColumnsRow State PresentationSticky Table HeadersRecap: Data Tables8Interactive Panels
Expanded Control CuesChoice Card StatesFocus-Aware Help PanelsContent-Aware Empty StatesRecap: Interactive Panels11Project: Event Portal
Portal ShellSession Browser