chanan / chanan/BlazorStyled

Set class on html not working

Open
#95 3 comments 0 reactions 0 assignees View on GitHub
bug question
Dominant language
C#
Stars
193
Forks
19
PR merge metrics
No merged PRs in 30d

Description

Hi, I'm using BlazorStyled with MatBlazor, I could style like this fine

```

.xxx {
background: rgba(20,20,20,0.75);
}

```

But I could not get it working like this

```

xxx {
background: rgba(20,20,20,0.75);
}

```

I could get it working on body and using classname so blazorstyled is setup correctly.

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue mentions the Styled component and MatAppBar, but no source file or test location. Start by reproducing the working class-based style and the failing Styled rule, then trace how each is applied to the HTML element. Done means the Styled rule applies to MatAppBar as expected, with a regression test if the project has applicable tests.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.