Replies: 4 comments 7 replies
-
try this using a custom theme |
Beta Was this translation helpful? Give feedback.
-
Tried that too. Made up a class name and defined that in the custom theme. I can see the class name come through on the browser by inspecting the element. I can even see the text color style, but something overrides it. The anchor tag for the link to edit seems to override. I know it’s possible to turn off edit as default behavior for the row, maybe that will help. But couldn’t find that in the docs.On Oct 15, 2023, at 2:09 AM, Leandro Costa Ferreira ***@***.***> wrote:
try this using a custom theme
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Yes
… On Oct 15, 2023, at 7:55 AM, Leandro Costa Ferreira ***@***.***> wrote:
Did you run npm run build, right?
—
Reply to this email directly, view it on GitHub <#9108 (reply in thread)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAOQUHGHGTNFBJ53LR4FH53X7P2NHAVCNFSM6AAAAAA6AXBRTKVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TEOBVGM2TA>.
You are receiving this because you authored the thread.
|
Beta Was this translation helpful? Give feedback.
-
This issue is beyond my skill level. I'll try to come back around and create a bug repo to demonstrate this when I can but it might be a while. I am pretty convinced it's a bug though. It seems like a specificity issue and that something from the table classes, be it at the tr or td level has higher specificity. I could be wrong, that's as deep as I can go right now. But @danharrin just tagging you in as an FYI. |
Beta Was this translation helpful? Give feedback.
-
` public static function table(Table $table): Table
{
return $table
// ->recordClasses(fn (Model $record) => match ($record->priority) {
// 'Urgent' => 'line-through border-s-2 border-orange-600 dark:border-orange-300',
// default => null,
// })
Even the commented out section straight from the docs (except my field name) didn't work.
You can see on the screenshot that the combined classes are being returned but only line-through works. Front end is not my forte that's for sure. I know that CSS cascading can get complex but I thought the doc example classes might at least work.
I've gone waayyyyy down the rabbit hole and even tried a custom theme with a class name for urgent priority tasks and
tr.task-urgent td a { @apply !text-red-600; }
for the css. I confirmed that the class name is being applied but something somewhere overrides every time.
I just cannot seem to change a row's text color, border color or anything.
Beta Was this translation helpful? Give feedback.
All reactions