-
Notifications
You must be signed in to change notification settings - Fork 442
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
Fix missing Talk sidebar trigger in public share pages #7593
Fix missing Talk sidebar trigger in public share pages #7593
Conversation
It's not a functional component anymore with #7592 🤕😅 |
fa6007d
to
8a1f953
Compare
Keyboard tabbing before nextcloud-libraries/nextcloud-vue#2869 Keyboard tabbing with nextcloud-libraries/nextcloud-vue#2869 So let's get this in nextcloud-libraries/nextcloud-vue#2871 |
Vue lib is in |
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.
Header menu toggles and app buttons have an opacity of 0.85, but the Vue button uses 0.7. Should the opacity be increased (in PublicShareSidebarTrigger)?
Other than the comments, tested and works 👍
Thanks for adding the style for the Vue button!
|
||
<style scoped> | ||
.button-holder { | ||
margin: 2px 5px 2px 2px; |
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.
Header contents are vertically centered. Are the vertical margins needed?
Out of curiosity, why 5px instead of 2px for margin-right
?
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.
The margins where needed otherwise the box shadow was cut off.
For the right sidebar I added 3px on top so the white border of keyboard active doesn't touch the browser as it looked too weird.
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.
The margins where needed otherwise the box shadow was cut off.
I tried removing the margins (or, rather, replacing with margin-right: 3px
) and as far as I can tell it was working fine 🤷 That is why I was asking. But maybe it depends on the browser, I do not know.
For the right sidebar I added 3px on top so the white border of keyboard active doesn't touch the browser as it looked too weird.
👍
display: flex; | ||
justify-content: center; |
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.
Is it needed to horizontally center the button? As the div has no explicit width it should have the width of its child elements, so the button should be already centerd in the div. Or am I missing something?
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.
Copied this from the app icons and only then the centering worked as expected.
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.
Same as above, I tried removing the rules and as far as I can tell it was working fine. But same as above, maybe it is related to the browser, no idea 🤷
We should probably not rely on the opacity for the hover effect in the button in the first place @danxuliu |
And how it should be done? Using a background? Something else? In any case it should be changed in nextcloud-vue as well as in the header stylesheet. |
Yes I mean changing it in the vue library. The hover feedback can be just the change in cursor (we have a |
Since vue 5.4 is merged, this can be rebased and then merged. |
Nevermind, one of the things that was merged after 5.4.0 nextcloud-libraries/nextcloud-vue#2940 |
Since the removal of SCSS files the "menu-people" icon can no longer be used directly with a CSS class. However, it is available as a Vue component; although it would be possible to directly render the Vue component for the icon inside the button element the whole button is moved to Vue instead, as the other approach requires more fighting with the styles. As the icon will be shown with a transparent background on the header, which uses the primary color, the fill color of the icon needs to be explicitly set to the primary text color. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
8a1f953
to
089defd
Compare
Rebased |
As per chat:
Updating the vue lib to 6 with #7711 will fix it. |
Follow up to #7576
Fixes #7578
Since the removal of SCSS files the
menu-people
icon can no longer be used directly with a CSS class. However, it is available as a Vue component; although it would be possible to directly render the Vue component for the icon* inside the button element the whole button is moved to Vue instead, as the other approach requires more fighting with the styles.*For reference in case it is ever needed: