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

Use large border-radius in Action Button #2713

Merged
merged 4 commits into from
May 31, 2022

Conversation

GretaD
Copy link
Contributor

@GretaD GretaD commented May 30, 2022

Signed-off-by: greta <gretadoci@gmail.com>
@GretaD GretaD added enhancement New feature or request 3. to review Waiting for reviews labels May 30, 2022
@GretaD GretaD marked this pull request as draft May 30, 2022 15:32
@GretaD GretaD added 2. developing Work in progress and removed 3. to review Waiting for reviews labels May 30, 2022
Copy link
Contributor

@ChristophWurst ChristophWurst left a comment

Choose a reason for hiding this comment

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

👍 🐘

@ChristophWurst
Copy link
Contributor

Ready for review or not?

Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
@raimund-schluessler
Copy link
Contributor

@GretaD I had a bit of time and worked on your PR. I hope, you don't mind. If you don't like my changes, just discard them.

The result now looks like this:
Screenshot 2022-05-30 at 23-43-31 Tasks - Nextcloud

The values of the border radius might need some tweaking, though. Given that we should respect OuterRadius = InnerRadius + Padding, the OuterRadius is 14 px at the moment, which might be a bit large. If we want it smaller, we would need to reduce either padding and/or InnerRadius.

@nimishavijay @jancborchardt

@@ -170,6 +170,7 @@ export default {
:placement="placement"
:boundaries-element="boundariesElement"
:container="container"
popover-base-class="action-item__popover"
Copy link
Contributor

Choose a reason for hiding this comment

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

Necessary, so we can only style popovers from Actions.

@@ -77,6 +77,13 @@ export default {
VPopover,
},

props: {
popoverBaseClass: {
Copy link
Contributor

Choose a reason for hiding this comment

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

Needs some documentation.

Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
@raimund-schluessler
Copy link
Contributor

The values of the border radius might need some tweaking, though. Given that we should respect OuterRadius = InnerRadius + Padding, the OuterRadius is 14 px at the moment, which might be a bit large. If we want it smaller, we would need to reduce either padding and/or InnerRadius.

I adjusted the border radii. This looks like this now:
Screenshot 2022-05-31 at 07-26-35 Tasks - Nextcloud

This is closer to what @nimishavijay had in mind in nextcloud/mail#6200 (comment), I guess.

@GretaD
Copy link
Contributor Author

GretaD commented May 31, 2022

Ready for review or not?

No, sorry, my first approach was not the perfect one and raimund had a good point on fixing everything here on vue instead of getting sever involved

@GretaD
Copy link
Contributor Author

GretaD commented May 31, 2022

@GretaD I had a bit of time and worked on your PR. I hope, you don't mind. If you don't like my changes, just discard them.

No problem, i was working on this yesterday and i did smth similar but the row jumped a bit on hover, thats why i didnt push.
Is this ready for review? I checked the code and looks good but didnt test with mail or calendar

@raimund-schluessler
Copy link
Contributor

@GretaD I had a bit of time and worked on your PR. I hope, you don't mind. If you don't like my changes, just discard them.

No problem, i was working on this yesterday and i did smth similar but the row jumped a bit on hover, thats why i didnt push.

Is this ready for review? I checked the code and looks good but didnt test with mail or calendar

I tested it with Tasks and it worked fine from my POV. But a bit more testing wouldn't hurt, I guess. It affects a widely used component, though.

@GretaD GretaD marked this pull request as ready for review May 31, 2022 08:57
@GretaD
Copy link
Contributor Author

GretaD commented May 31, 2022

works good with mail too

@ChristophWurst ChristophWurst removed the 2. developing Work in progress label May 31, 2022
@ChristophWurst ChristophWurst added the 3. to review Waiting for reviews label May 31, 2022
Copy link
Contributor

@st3iny st3iny left a comment

Choose a reason for hiding this comment

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

I tested it on calendar and it worked well. It looks very good too.

I couldn't test on mail because the app won't load and I get the following error in the console:

TypeError: __webpack_modules__[moduleId] is not a function
    __webpack_require__ isMobile.js:107

But I don't think that's related.

EDIT: Nevermind, I did npm ci and npm run dev again and it worked.

@GretaD GretaD merged commit f5e01f1 into master May 31, 2022
@GretaD GretaD deleted the enhanc/action-button-border-radius branch May 31, 2022 10:31
@st3iny st3iny added this to the 5.4.0 milestone May 31, 2022
@ChristophWurst
Copy link
Contributor

Shall we tag this as breaking? I don't know how high impact design changes are handled here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants