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

fix dropdowns have wrong mark color in browsers #3238

Conversation

Darshan-upadhyay1110
Copy link
Collaborator

Summary

  • cool-var-source-light element is no longer loaded to office.vue
  • create element div to handle null value foe light/dark element

TODO

  • ...

Checklist

  • Code is properly formatted
  • Sign-off message is added to all commits
  • Documentation (manuals or wiki) has been updated or is not required

@Darshan-upadhyay1110
Copy link
Collaborator Author

CC: @juliushaertl can you please review this patch.

@@ -88,8 +95,7 @@ const generateCSSVarTokens = () => {
}

// New dark mode compatible way to hand over our Nextcloud variables in both light/dark to Collabora
const lightElement = document.getElementById('cool-var-source-light') ?? document.documentElement
const darkElement = document.getElementById('cool-var-source-dark') ?? document.documentElement
const darkElement = createDataThemeDiv('div', 'dark')
Copy link
Member

Choose a reason for hiding this comment

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

Can we also remove those elements after extracting the values again?

Copy link
Member

@juliushaertl juliushaertl left a comment

Choose a reason for hiding this comment

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

Small nitpick to cleanup the elements, otherwise tested and works 👍

@juliushaertl juliushaertl added bug Something isn't working 2. developing Work in progress labels Oct 20, 2023
@juliushaertl juliushaertl added this to the Nextcloud 28 milestone Oct 20, 2023
@juliushaertl
Copy link
Member

/backport to stable27

@juliushaertl
Copy link
Member

Also eslint is not happy:

Error: 54:6 error 'element' is never reassigned. Use 'const' instead prefer-const

@Darshan-upadhyay1110 Darshan-upadhyay1110 force-pushed the private/darshan/missing-cool-theme-element branch from 8aa58b3 to f67f25d Compare October 20, 2023 11:42
Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>
@Darshan-upadhyay1110
Copy link
Collaborator Author

CC: @juliushaertl

@juliushaertl juliushaertl added 4. to release Ready to release, can be waiting for the tests to finish and removed 2. developing Work in progress labels Oct 20, 2023
@juliushaertl juliushaertl merged commit 8729188 into nextcloud:main Oct 20, 2023
44 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to release, can be waiting for the tests to finish bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dropdowns have wrong mark color in browsers
2 participants