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

Always use the main background for the default theme #1279

Merged
merged 1 commit into from
Jul 7, 2022

Conversation

juliusknorr
Copy link
Member

Fixes nextcloud/text#2374 as with the new accesibility options the old class was not matching anymore and we can always use the main background color in case of the "default" viewer theme which adapts the viewer UI to use the main background.

Signed-off-by: Julius Härtl <jus@bitgrid.net>
@juliusknorr
Copy link
Member Author

/backport to stable24

@backportbot-nextcloud backportbot-nextcloud bot added the backport-request Pending backport by the backport-bot label Jul 6, 2022
@juliusknorr juliusknorr added bug Something isn't working 3. to review Waiting for reviews labels Jul 6, 2022
@juliusknorr juliusknorr requested a review from skjnldsv July 6, 2022 14:43
@skjnldsv
Copy link
Member

skjnldsv commented Jul 6, 2022

Do we still need the theme override by view providers then?

body.theme--light & {
background-color: rgba(255, 255, 255, .92) !important;
}
background-color: var(--color-main-background) !important;
Copy link
Member Author

Choose a reason for hiding this comment

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

Transparency is removed intentional as per design review in nextcloud/text#2211 for text

@juliusknorr
Copy link
Member Author

Do we still need the theme override by view providers then?

Not sure I get the question fully, but setting the background color here is still necessary as for text (with the viewer theme--default) we need to override it as with the regular viewer it is always black

Copy link
Member

@danxuliu danxuliu left a comment

Choose a reason for hiding this comment

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

Tested and works 👍

Thanks!

@juliusknorr juliusknorr merged commit b6510d9 into master Jul 7, 2022
@juliusknorr juliusknorr deleted the bugfix/noid/accessibility-default-theme branch July 7, 2022 07:08
@backportbot-nextcloud backportbot-nextcloud bot removed the backport-request Pending backport by the backport-bot label Jul 7, 2022
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 bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Toolbar has black background and black icons
4 participants