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

docs: update dark mode section #209

Merged
merged 7 commits into from
Nov 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,6 @@ please [open an issue](https://github.com/tomosterlund/qalendar/issues/new/choos
For any other questions or comments, feel free to chat with us on
Discord: https://discord.gg/Z6sTaTNADN

## Sponsoring

If you are benefiting from this library, and want to see it developed & maintained in the long
run, please consider sponsoring.

[Sponsor me today](https://github.com/sponsors/tomosterlund)

## License

MIT
Expand Down
4 changes: 1 addition & 3 deletions cypress/e2e/02-five-day-week.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,9 @@ describe('FiveDayWeek.vue', () => {

it('Gets a multiple day event, and opens it in EventFlyout', () => {
cy.wait(500)
cy.compareSnapshot('02-five-day-week')
cy.compareSnapshot('02-five-day-week', 0.03)
getFirstEventInWeekTimeline().click()
getEventFlyoutTitle().contains('Advanced algebra')
cy.wait(500)
cy.compareSnapshot('02-five-day-week__event-dialog')
});

it('Gets a timed event, and opens it in EventFlyout', () => {
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/09-small-qalendar.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ describe('SmallQalendar', () => {
it('should display leading and trailing days by default in month mode', () => {
setMonthMode()
getTrailingOrLeadingDays().should('be.visible')
cy.compareSnapshot('small-qalendar-month')
cy.compareSnapshot('small-qalendar-month', 0.03)
})

it('should set selected date by default in month mode and display active style for it', () => {
Expand Down
4 changes: 2 additions & 2 deletions cypress/e2e/13-dark-mode.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ describe('Dark mode on desktop', () => {
})

it('should render the week view in dark mode', () => {
cy.compareSnapshot('dark-mode-week-view');
cy.compareSnapshot('dark-mode-week-view', 0.03);
});

it('should render the month view in dark mode', () => {
Expand All @@ -34,7 +34,7 @@ describe('Dark mode on mobile', () => {

it('should render the month view in dark mode', () => {
setMonthMode();
cy.compareSnapshot('dark-mode-month-view-mobile');
cy.compareSnapshot('dark-mode-month-view-mobile', 0.03);
});

it('should render the day view in dark mode', () => {
Expand Down
6 changes: 0 additions & 6 deletions docs/guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,6 @@ Dark mode is enabled in one out of two ways:
1. User system preferences
2. Set programmatically, by adding the inline style `style="color-scheme: dark"` to a parent element.

::: tip
If the rest of your application does not have a dark mode, you might want to instruct
Qalendar never switch to its own dark mode, even when user system settings tell it so. You can
prevent this by wrapping it in an element with the inline style `style="color-scheme: light"`.
:::

## Basic configuration

Qalendar takes a `config` prop, which contains all the most crucial options for configuring its
Expand Down