Replies: 1 comment
-
It doesn't work because of the scoping that happens when you use isolated CSS. Nor really a Datagrid or Fluent issue. It's a general Blazor consequence. Learn more about that at https://learn.microsoft.com/en-us/aspnet/core/blazor/components/css-isolation?view=aspnetcore-8.0 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm struggling to understand how I just want to center text inside my grid column by using the component css file.
The text is not centered in this picture :

I want it like this :

I found 2 way of doing this that work but i try to understand why it's not working with the css in the component.
.align-self-center { align-self: center; }
.align-self-center2 { align-self: center; }
In chrome i found the element to have an id "[b-w6qdxfylwy]" so is there is something i don't do correctly in the css?
fluent-data-grid-cell[b-w6qdxfylwy] { text-overflow: ellipsis; }
The code of the complete fluent data grid.
`
`
The component css file
.align-self-center2 {
align-self: center !important;
}
Beta Was this translation helpful? Give feedback.
All reactions