Commit cdafd6e
feat: add new horizontal tabs navigation user experience (#18310)
* feat: Add none scrollable horizontal tab user experience
Introduces `isHorizontal` and `isScrollable` properties to the Tabs component, allowing configuration of tab orientation and scrollability. Updates Blade, JS, and Alpine logic to support scrollable tabs with dropdown overflow handling and responsive behavior.
* style: run composer cs
* Refactor Tabs component and update related styles
Refactored the Tabs component across PHP, Blade, and JS implementations to improve maintainability and consistency. Updated related CSS for dropdown list items to enhance UI appearance. These changes ensure better integration and user experience for tabbed interfaces.
* Refactor tabs dropdown logic for improved visibility
Replaces the scrollable tabs logic with a more robust dropdown visibility calculation. Updates Alpine component, Blade template, and supporting JS to use new withinDropdownMounted and isDropDownButtonVisible properties, ensuring correct tab visibility and dropdown trigger behavior. Removes unused tabIndex and related code, and cleans up CSS.
* chore: fix code style
* chore: fix code style
* Add documentation for horizontal tabs usage
Added a new section explaining how to use horizontal tabs, including details about the default scrollable behavior and the `horizontal()` method with its `scrollable` parameter.
* Document horizontal tabs overflow behavior
Added explanation for how non-scrollable horizontal tabs handle overflow by grouping excess tabs into a dropdown when space is limited.
* chore: fix code style
* clean up
* Update tabs.blade.php
* more robust calculation
* chore: fix code style
* Revert "chore: fix code style"
This reverts commit 3acc6fe.
* refactor and support badges
* refactor php
* Update tabs.blade.php
* Update tabs.js
* Update tabs.blade.php
* screenshots
---------
Co-authored-by: Abdulmajeed-Jamaan <[email protected]>
Co-authored-by: Dan Harrin <[email protected]>
Co-authored-by: danharrin <[email protected]>1 parent 8f9380a commit cdafd6e
File tree
15 files changed
+1792
-1227
lines changed- docs-assets
- app
- app/Livewire/Schemas
- screenshots
- images
- dark/schemas/layout/tabs
- light/schemas/layout/tabs
- packages
- panels/dist
- schemas
- dist/components
- docs
- resources
- css/components
- js/components
- views/components
- src
- Components
- View
15 files changed
+1792
-1227
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
287 | 309 | | |
288 | 310 | | |
289 | 311 | | |
| |||
0 commit comments