Skip to content

bug: item borders effectively invisible in md dark mode  #29386

Closed
YoutacRandS-VA/eth2-beaconchain-explorer-app
#2
@aparajita

Description

@aparajita

Prerequisites

Ionic Framework Version

v8.x

Current Behavior

Maybe I'm missing something, but when using the Ionic dark mode palette in md mode, the separator lines for an ion-item within ion-list and ion-accordion become effectively invisible in dark mode.

In the case of an ion-item inside an ion-list, the border color is #222222, which is almost no contrast with the item backgound.

In the case of ion-accordion, the border color is set to --ion-color-shade, which is set to var(--ion-color-light-shade, #d7d8da) !important by the .ion-color-light class on the ion-item, which resolves to #1e2023, which is way too dark to be visible against the background.

I'm seeing this on the web and on an Android device.

Screenshot 2024-04-23 at 1 11 37 PM Screenshot 2024-04-23 at 1 11 57 PM

Expected Behavior

I would expect the borders to be lighter than the background with sufficient contrast to be visible to the naked eye, as they were in Ionic 7.

Steps to Reproduce

ion-accordion > ion-item reproduction: https://stackblitz.com/edit/motuzy-w4g1t1?file=src%2Fmain.ts
ion-list > ion-item reproduction: https://stackblitz.com/edit/ryxtvq-ns4z3v?file=package.json

Code Reproduction URL

https://stackblitz.com/edit/ryxtvq-ns4z3v?file=package.json

Ionic Info

From stackblitz:

Ionic:

Ionic CLI : 7.2.0

Utility:

cordova-res : not installed globally
native-run : not installed globally

System:

NodeJS : v18.18.0
npm : 10.2.3
OS : Linux 5.0

Additional Information

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions