Skclusive.Material.Component icon indicating copy to clipboard operation
Skclusive.Material.Component copied to clipboard

Cannot change color on Table Header

Open Julianh9 opened this issue 4 years ago • 4 comments

Does not change colors on <TableHead>

Julianh9 avatar Dec 21 '20 10:12 Julianh9

can you provide sample snippet?

skclusive avatar Dec 21 '20 15:12 skclusive

Hi there,

Here is the snippet - bold does not work. regards Julian Hoets

<TableHead Style="color:yellow; background-color:aqua;"> <TableRow> <TableCell>

@CreateSortableColumn("EntityName", "EntityName") </TableCell> <TableCell Align="@Align.Right">

@CreateSortableColumn("DefaultDataBase", "DefaultDataBase") </TableCell> <TableCell Align="@Align.Right"> @CreateSortableColumn("Id", "Id") </TableCell>

                                    <TableCell Align="@Align.Right">
                                        Edit
                                    </TableCell>

                                </TableRow>
                            </TableHead>

Here

On Mon, Dec 21, 2020 at 5:21 PM skclusive [email protected] wrote:

can you provide sample snippet?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/skclusive/Skclusive.Material.Component/issues/84#issuecomment-749027789, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABYVIFQQ67DT4QE4IOG2EGLSV5RVXANCNFSM4VEAFDEQ .

Julianh9 avatar Dec 21 '20 16:12 Julianh9

thanks. will look into this.

skclusive avatar Dec 24 '20 04:12 skclusive

looks like the background color is applied on the header (aqua). but the color (yellow) not applied on the TableCell text because TableCell has higher priority css color styling. so either you could have a css class for cell level or style property on cell level can be applied.


<TableHead  
       Style="background-color:aqua;">
       <TableRow>
               <TableCell Style="color:yellow;">
                       @CreateSortableColumn("EntityName", "EntityName")
                </TableCell>
                <TableCell Style="color:yellow;" Align="@Align.Right">
                       @CreateSortableColumn("DefaultDataBase", "DefaultDataBase")
                 </TableCell>
                 <TableCell Style="color:yellow;" Align="@Align.Right">
                         @CreateSortableColumn("Id","Id")
                  </TableCell>
                  <TableCell Class="app-header-text-yellow" Align="@Align.Right">
                           Edit
                  </TableCell>
        </TableRow>
</TableHead>

skclusive avatar Dec 28 '20 05:12 skclusive