-
Notifications
You must be signed in to change notification settings - Fork 407
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
[Tabs] Remove height compensation #3149
[Tabs] Remove height compensation #3149
Conversation
What the current problem with the existing code (40px)? Why did you created this PR? |
@vnbaaij You are correct in the example you gave above where the height is given in pixels. But when the height is given as a percentage then the 40px subtraction is not needed. Maybe the height of |
@dvoituron My issue is that I am setting |
Ok, this makes it clear what you are trying to achieve. As I showed in my comment before, there is a situation where the -40px is needed. The PR needs to take both situations into account. Can you change it so it cater both options? Easiest way is, I think to add an extra |
OK. Clearer. You could add a CSS variable |
@vnbaaij @dvoituron Ok I will change it. What speaks against just setting the height of the |
fluent-tab and fluent-tab-panel are separate web components and are rendered besides each other in the DOM panel is not a child of the tab. |
@vnbaaij If you open the shadow-root of the |
@vnbaaij My suggestion was to set the height of Here I'm hoving on |
So do it like this?
|
@vnbaaij Implemented the change as above 👍 |
Pull Request
📖 Description
The height of the
FluentTab
is derived from the height of theFluentTabs
component. This is done by subtracting 40px from the height ofFluentTabs
. The 40px is the height of the fluent tabs list. This is not necessary as theFluentTab
is rendered inside thetabpanel
part of thefluent-tabs
web component which already accounts for this. (fluent-tabs
is a grid withtablist
taking the first row andtabpanel
taking the rest.)🎫 Issues
👩💻 Reviewer Notes
📑 Test Plan
✅ Checklist
General
Component-specific
⏭ Next Steps