material-components / material-components/material-web

Text Field Outline/Border Color breaks under Label into a Black Segment

Open
#5,668 2 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
SCSS
Stars
11.3k
Forks
1.1k
Avg merge
20h 28m
Merged PRs (30d)
13

Description

### What is affected?

Component, Theming

### Description

When I use a m3 web component in a svelte app, the outline is not consistently the primary color, instead, under where the label is, the outline becomes partially black.
Screenshot 2024-07-03 at 2 09 45 PM

### Reproduction

https://secret.labs.tozny.com/create

### Workaround

have not

### Is this a regression?

No or unsure. This never worked, or I haven't tried before.

### Affected versions

failing @material/web@1.5.1

### Browser/OS/Node environment

node: v20.14.0
safari: Version 17.4 (19618.1.15.11.12)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue at the linked create page with @material/web@1.5.1 in the reported Svelte, Safari, and Node environment. Inspect the text field component's theming and outline behavior; done means the outline remains the primary color beneath the label without the black segment.

Written by the indexing model from the issue text.

Assessment

Tech stack
scss
Domain
design, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.