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

Clone button enhancements #33362

Merged
merged 5 commits into from
Jan 26, 2025
Merged

Clone button enhancements #33362

merged 5 commits into from
Jan 26, 2025

Conversation

silverwind
Copy link
Member

@silverwind silverwind commented Jan 23, 2025

  • Add box-shadow to default tippy theme
  • Make colors for tabs match the ones from .ui.tabular.menu
  • Remove tippy arrow and slightly offset tooltip closer to the button
  • Fix setting of aria-haspopup when default role is used with tippy
image

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Jan 23, 2025
@pull-request-size pull-request-size bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Jan 23, 2025
@silverwind
Copy link
Member Author

offset tooltip closer to the button

I will rework this to find a general solution for arrow-less tooltips so that they have the same smaller offset.

@silverwind silverwind marked this pull request as draft January 23, 2025 10:57
@silverwind silverwind marked this pull request as ready for review January 26, 2025 13:46
@silverwind
Copy link
Member Author

silverwind commented Jan 26, 2025

Ready again. Now the 6px offset is set in createTippy when arrow is false. I verified that the 10px value was the previous default of tippy.js.

I suppose this should be backported, especially because of the fix for aria-haspopup.

@silverwind silverwind added the backport/v1.23 This PR should be backported to Gitea 1.23 label Jan 26, 2025
@silverwind silverwind changed the title Clone button tweaks Clone button enhancements Jan 26, 2025
@silverwind silverwind added the type/enhancement An improvement of existing functionality label Jan 26, 2025
@silverwind silverwind requested a review from wxiaoguang January 26, 2025 14:10
@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Jan 26, 2025
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Jan 26, 2025
@wxiaoguang wxiaoguang merged commit 9875f9b into go-gitea:main Jan 26, 2025
26 checks passed
@GiteaBot GiteaBot added this to the 1.24.0 milestone Jan 26, 2025
@wxiaoguang wxiaoguang deleted the clonetweaks branch January 26, 2025 18:07
GiteaBot pushed a commit to GiteaBot/gitea that referenced this pull request Jan 26, 2025
- Add box-shadow to default tippy theme
- Make colors for tabs match the ones from `.ui.tabular.menu`
- Remove tippy arrow and slightly offset tooltip closer to the button
- Fix setting of `aria-haspopup` when default role is used with tippy

---------

Co-authored-by: wxiaoguang <[email protected]>
@GiteaBot GiteaBot added the backport/done All backports for this PR have been created label Jan 26, 2025
silverwind added a commit that referenced this pull request Jan 26, 2025
Backport #33362 by @silverwind

- Add box-shadow to default tippy theme
- Make colors for tabs match the ones from `.ui.tabular.menu`
- Remove tippy arrow and slightly offset tooltip closer to the button
- Fix setting of `aria-haspopup` when default role is used with tippy

<img width="335" alt="image"
src="https://github.com/user-attachments/assets/8633ebac-a43f-457a-86bd-7a88a83519ee"
/>

Co-authored-by: silverwind <[email protected]>
Co-authored-by: wxiaoguang <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/done All backports for this PR have been created backport/v1.23 This PR should be backported to Gitea 1.23 lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. modifies/frontend size/S Denotes a PR that changes 10-29 lines, ignoring generated files. type/enhancement An improvement of existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants