Skip to content

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.

// 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

@juliusknorr juliusknorr 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 👍

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

/backport to stable27

@juliusknorr
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

@juliusknorr juliusknorr 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
@juliusknorr juliusknorr merged commit 8729188 into nextcloud:main Oct 20, 2023
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