Skip to content

White Outline on Dark Mode Toggle Affects Internal Elements #213

@teja-pola

Description

@teja-pola

Bug Report 🐛

The dark mode toggle button was updated with a white outline to improve visibility. However, the outline is also applied inside the button, affecting its appearance.

Expected Behavior

The white outline should only be applied around the button's outer boundary to enhance visibility without affecting the inner elements.

Current Behavior

The white outline is applied both outside and inside the button, making it look cluttered and inconsistent.
Screenshot_2025-03-11-03-50-36-269_com.android.chrome-edit.jpg

Possible Solution

Use outline or border only on the outer boundary of the button. Avoid applying styles that affect internal elements or use box-shadow instead for better visual clarity.
Picsart_25-03-11_04-18-18-377.jpg

Steps to Reproduce

  1. Go to the page with the dark mode toggle button.
  2. Enable dark mode.
  3. Observe the white outline applied to the button.
  4. Notice that the outline also appears inside the button, affecting readability.

Context (Environment)

The issue affects the UI by making the dark mode toggle button look inconsistent. The intended improvement of visibility is compromised by the inner outline.

Desktop

  • OS: [e.g. macOS]
  • Browser: [e.g. Chrome, Safari]
  • Version: [e.g. 0.22.15]

Detailed Description

The white outline should be applied only around the button's external boundary. Internal elements should not be affected to maintain a clean and consistent UI.

Possible Implementation

Use outline: 2px solid white; on the button element without affecting child elements. Alternatively, use box-shadow for a more subtle effect.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions