-
-
Notifications
You must be signed in to change notification settings - Fork 334
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
Improve DocumentControl styling capabilities #2605
Improve DocumentControl styling capabilities #2605
Conversation
2be82e2
to
ef336a6
Compare
@cwensley, do you have any comments about the changes in this PR? |
Hi, In short, we needed to balance the size of the close button and the X with the size of the icon, otherwise it appears too small using pre-existing logic (33%/33%/33%). |
I'm not sure having different size based on fixed height vs not is ideal here, it should behave/look the same regardless imo. Also I'm not a huge fan of the size of the X personally with the new logic, but I understand this is entirely subjective. Maybe we need to have a better default scale or logic based on its size? |
That is another way of doing it. What kind of logic do you have in mind? |
cd26a95
to
d2ca4d7
Compare
Hi @cwensley, I have implemented an unconditional logic that does not use custom values for margin or size of the close button. Please have a look. |
Signed-off-by: İevgen Baida <ievgen.baida@mendix.com>
Signed-off-by: İevgen Baida <ievgen.baida@mendix.com>
Signed-off-by: İevgen Baida <ievgen.baida@mendix.com>
Signed-off-by: İevgen Baida <ievgen.baida@mendix.com>
Signed-off-by: İevgen Baida <ievgen.baida@mendix.com>
Signed-off-by: İevgen Baida <ievgen.baida@mendix.com>
Signed-off-by: İevgen Baida <ievgen.baida@mendix.com>
6a469af
to
acd2cba
Compare
acd2cba
to
2d64d72
Compare
Hey @ievgen-baida, thanks for the updates! This looks great. If anything that scale could be added as another property that can be configured, but at this point just having a consistent size is perfect. |
Hi @cwensley, what it your plan for releasing 2.8.3 with these improvements? |
Hey @ievgen-baida, it's released! |
This PR makes it possible to adjust the following styling aspects of
DocumentControl
:BackgroundColor
of theDocumentControl
;TabHoverBackgroundColor
andTabHoverForegroundColorfor
for the tab in Hover state;CloseCornerRadius
forX
Close tab button.Changes in look/default behavior:
Highlighted
tab colors winning vsHover
colors (as this is how most of the tab controls look);