Drop the old data-dragged hook from md-state-layer
Plan step 36 review. interaction.css read `data-dragged` beside `data-md-dragged` while <x-card> still set the old name; the card now sets the new one and nothing in the package renders the old one on an element with the class, which 2.0.0 introduces. The Tailwind `state-layer` utility keeps `data-dragged` until step 39 deletes it. UPGRADE.md's card line named the old `data-card` hook. 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
a764fddf27
commit
0326065348
@@ -543,15 +543,16 @@ it('draws the interaction classes as the utilities the Tailwind components still
|
||||
$class = stylesheetBlock($interaction, ".md-{$name}");
|
||||
|
||||
expect($normalise(str_replace(
|
||||
// The two deliberate differences: the data-md-* hook beside the old one, and M3's 48
|
||||
// CSS pixels for the target where the utility reads 3rem.
|
||||
['&:is([data-md-dragged], [data-dragged])', 'var(--md-sys-measurement-space600)'],
|
||||
// The two deliberate differences: the data-md-* hook in place of the old one, and M3's
|
||||
// 48 CSS pixels for the target where the utility reads 3rem.
|
||||
['&[data-md-dragged]', 'var(--md-sys-measurement-space600)'],
|
||||
['&[data-dragged]', '3rem'],
|
||||
$class,
|
||||
)))->toBe($normalise(stylesheetBlock($utilities, "@utility {$name}")), $name);
|
||||
}
|
||||
|
||||
expect(stylesheetBlock($interaction, '.md-state-layer'))->toContain('&:is([data-md-dragged], [data-dragged])::before')
|
||||
expect(stylesheetBlock($interaction, '.md-state-layer'))->toContain('&[data-md-dragged]::before')
|
||||
->not->toContain('[data-dragged]')
|
||||
->and(stylesheetBlock($interaction, '.md-touch-target'))->toContain('min-width: var(--md-sys-measurement-space600);');
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user