-
-
Notifications
You must be signed in to change notification settings - Fork 519
change styling for tabs #1564
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
base: master
Are you sure you want to change the base?
change styling for tabs #1564
Conversation
BotBlake
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works. Looks reasonable.
Also very nice css work 🗿
@nielsvanvelzen you do da merge 🗿
|
Whoever is merging please squash |
|
3 commits is two to many for felix 🗿 |
all code in these files are generated by docusaurus tooling
|
Made quite a bit of changes to get to what @erikbucik asked for @erikbucik @nielsvanvelzen please review |
|
@erikbucik THIS IS AWESOME 🔥 |
|
@erikbucik HOW TF did you do that 😆 @felix920506 In case you care, to do that I added a new class Properties are: .tabItem {
margin-top: 0 !important;
border: 1px solid transparent;
border-bottom: none;
border-top-left-radius: 8px;
border-top-right-radius: 8px;
}
.tabItem:hover {
border-color: rgba(255, 255, 255, 0.15);
background-color: rgba(255, 255, 255, 0.04);
}
.activeItem {
color: rgba(255, 255, 255, 0.9);
border: 2px solid rgba(255, 255, 255, 0.2);
border-bottom: 2px solid transparent;
position: relative;
z-index: 2;
}I added the ActiveItem by adding ,[styles.activeItem]: selectedValue === valueto line 81 in your index.tsx 👍 I dont realy know how to get rid of the border between the tab item and the tab content though 😅 |
|
|
I hope it doesn't break 🗿 |
|
@erikbucik What styles on what element did you change to get the effect in your screenshot? |
|
@felix920506 consider the tab list a 'static' element on the page and the tab area a 'changeable'/'disappearing' element. I made the active tab's bottom border the same color as the background, set z-index above the tab area and used that negative margin on the tab area. ;) |
|
tabList:
tabItem
tabItem-active
tabContainer = content area
That should do it. |
|
how many design changes have we gone through now 🗿 |
erikbucik
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
|
@nielsvanvelzen please review |
This one is @erikbucik 's fault, caused by the font-weight entries in the CSS |
Fixed |
🗿 I give up
|
🗿 I give up, yeeting the bold |
Cloudflare Pages deployment
|
I didn't even notice that 'till now 💀 |
|
Preview where :( |
|
I would not squash merge this one btw 😅 |






Add css to mark the area of tabs, to make it clear where the tabs area ends
credit goes to @BotBlake for the CSS: #1495 (review)
Before:

After:
