Draw a button's spinner in the button's own ink
The loading indicator inside a filled or tonal button was painted in text-primary on a primary container — 1:1 contrast. M3 asks an indicator embedded in another component to take that component's label colour, so the button now passes text-current, which loading.blade.php reads as a caller colour and leaves alone. Plan step 11, actions.md ACT-01. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Qwx5USif3wFFmxtHg5U1g9
This commit is contained in:
co-authored by
Claude Opus 5
parent
0adfb6fff4
commit
91f49be6d7
@@ -120,10 +120,12 @@ it('disables a button, and a link as far as a link can be', function () {
|
||||
->assertSee('tabindex="-1"', false);
|
||||
});
|
||||
|
||||
it('shows the loading indicator while its own action runs', function () {
|
||||
it('shows the loading indicator while its own action runs, in the button\'s own ink', function () {
|
||||
$this->blade('<x-button label="Save" wire:click="save" spinner />')
|
||||
->assertSee('wire:loading.attr="disabled"', false)
|
||||
->assertSee('wire:target="save"', false);
|
||||
->assertSee('wire:target="save"', false)
|
||||
->assertSee('size-5 text-current', false)
|
||||
->assertDontSee('text-primary"', false);
|
||||
|
||||
$this->blade('<x-button label="Save" wire:click="save" spinner="upload" />')
|
||||
->assertSee('wire:target="upload"', false);
|
||||
|
||||
Reference in New Issue
Block a user