-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MudTabs: add WrapHeaders (reverted) #9108
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev #9108 +/- ##
==========================================
+ Coverage 89.82% 90.65% +0.82%
==========================================
Files 412 398 -14
Lines 11878 12420 +542
Branches 2364 2418 +54
==========================================
+ Hits 10670 11259 +589
+ Misses 681 623 -58
- Partials 527 538 +11 ☔ View full report in Codecov by Sentry. |
It might be a noob question, but @danielchalmers, do you happen to know if a pure CSS solution is possible? Is it really not possible to have a responsive grid without JavaScript for something as simple as an inline header on resize? |
If the slider could just be directly inside the tab header element it's possible, but then the slider animation won't function. That's my understanding at least, but I definitely could be wrong. |
That's exactly what I did to make the headers inline. (I prevent the transform from updating so there's no scrolling.)
If there's no better ideas (see above)... i'll have to play with it some more. The resize events are tricky 🙁 |
Yeah with the way the slider works JavaScript could make the most sense. I wonder if there's any appetite to change the animation to something more modern (no slider) |
(does it ping people when more commits are added?) The slider is positioning correctly when the window gets resized now. |
We need a better parameter name. I suggest |
I was worried simply |
|
Fair enough, |
This PR seems to cause a regression: #9167 |
Regression fixed by #9205 |
This reverts commit e5bdc0e.
This has been reverted in #9234, the reasons are stated in that PR |
Description
Adds WrapHeaders parameter to
MudTabs
. If true, tab headers will wrap instead of scroll.resolves #6758
How Has This Been Tested?
Visually in docs and added WrapHeaders test.
Type of Changes
Checklist
dev
).