Skip to content
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

feat(UI): Improve split button styling #10027

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

maks-w
Copy link

@maks-w maks-w commented Sep 10, 2024

Change-Id: I4f0474e02411ada5547c8c2f23dda22cb4433557

Summary

This is my proposal for UI splitting the buttons in 2 parts.
I hope I didn't take too much liberty with the design ^^

Checklist

  • I have run make prettier-write and formatted the code.
  • All commits have Change-Id
  • I have run tests with make check
  • I have issued make run and manually verified that everything looks okay
  • Documentation (manuals or wiki) has been updated or is not required

@maks-w maks-w force-pushed the maks-w/improve-split-button-styling branch 12 times, most recently from cea76c8 to bfb47c3 Compare September 12, 2024 11:04
Signed-off-by: Maks Wolkowinski <[email protected]>
Change-Id: I4f0474e02411ada5547c8c2f23dda22cb4433557
@maks-w maks-w force-pushed the maks-w/improve-split-button-styling branch from bfb47c3 to 11a8e52 Compare September 12, 2024 11:30
.jsdialog.unotoolbutton.selected:hover {
background-color: var(--color-background-darker) !important;
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We move the responsability of the background-color to the children since a button could have 2 parts

}

.unoarrow::after,
.jsdialog .ui-content.unobutton::after {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I extended a little bit the click zone so that the border of the button could be clickable

@@ -37,6 +37,7 @@ describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Delete Objects', function(
});

it('Delete Chart' , function() {
cy.cGet('#toolbar-up > .ui-scroll-right').click();
cy.cGet('#toolbar-up > .ui-scroll-right').click();
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The menu is a bit wider now, so we need to click twice for the icon to appear.

@maks-w maks-w marked this pull request as ready for review September 12, 2024 12:37
@eszkadev
Copy link
Contributor

I see no problem with the JS code thanks! @pedropintosilva will you find a minute to review the new look of split button?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: To Review
Development

Successfully merging this pull request may close these issues.

Improve split button styling
2 participants