Skip to content
Open
10 changes: 9 additions & 1 deletion core/src/components/divider/test/basic/divider.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,16 @@ import { configs, test } from '@utils/test/playwright';

/**
* This behavior does not vary across directions.
* The ionic theme has no dark palette color for the line.
*
* TODO: The `IonDivider` colors in the ios and md dark palette files
* don't reach the component yet, so the dark screenshots record the
* light line color. Update them once palette component values apply.
*/
Comment on lines 5 to 12

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
/**
* This behavior does not vary across directions.
* The ionic theme has no dark palette color for the line.
*/
/**
* This behavior does not vary across directions.
* The ionic theme has no dark palette color for the line.
*
* TODO: The `IonDivider` colors in the ios and md dark palette files
* don't reach the component yet, so the dark screenshots record the
* light line color. Update them once palette component values apply.
*/

I know the description calls this out, but I think a note in the code would help too. The dark IonDivider colors never reach the divider, so these dark screenshots come out byte-identical with the dark entry removed or set to #ff0000. Once palette component values get wired up they'll start failing and look like a regression, with nothing here saying that's expected. I couldn't find a ticket for that wiring, so I left the number off the TODO. Up to you!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done in 5c9c343.

configs({ directions: ['ltr'], modes: ['ios', 'md', 'ionic-md'] }).forEach(({ config, screenshot, title }) => {
[
...configs({ directions: ['ltr'], modes: ['ios', 'md', 'ionic-md'] }),
...configs({ directions: ['ltr'], modes: ['ios', 'md'], palettes: ['dark'] }),
].forEach(({ config, screenshot, title }) => {
test.describe(title('divider: rendering'), () => {
test('should not have visual regressions', async ({ page }) => {
await page.setContent(
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions core/src/themes/ios/dark.tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ export const darkTheme: DarkTheme = {
IonCard: {
background: '#1c1c1d',
},
IonDivider: {
color: '#38383a',
},
IonItem: {
background: '#000000',
},
Expand Down
2 changes: 1 addition & 1 deletion core/src/themes/ios/default.tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2033,7 +2033,7 @@ export const defaultTheme: DefaultTheme = {
},

IonDivider: {
color: '#e0e0e0',
color: '#c6c6c8',

// One screen pixel at each density, like native iOS separators.
mediaQuery: {
Expand Down
3 changes: 3 additions & 0 deletions core/src/themes/md/dark.tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ export const darkTheme: DarkTheme = {
IonCard: {
background: '#1e1e1e',
},
IonDivider: {
color: '#2e2e2e',
},
IonItem: {
background: '#1e1e1e',
},
Expand Down
Loading