mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-26 21:53:06 +00:00
B115: remove px-4 do ul da action strip (botões entram da borda)
This commit is contained in:
parent
f4823c1436
commit
9c4f00d1cb
2 changed files with 6 additions and 3 deletions
|
|
@ -138,9 +138,12 @@ export const CampaignHomeActionStrip = ({
|
|||
)}
|
||||
{...finePointerPanProps}
|
||||
>
|
||||
{/* B115 — px-0 deliberado: os botões entram da borda do aparelho; o bleed
|
||||
-mx-4 do slot já leva o scroller à borda. Não re-adicionar inset lateral
|
||||
(B101 revertido pelo produto). */}
|
||||
<ul
|
||||
role="list"
|
||||
className="m-0 flex min-w-max list-none snap-x snap-proximity gap-0 px-4 pb-1 md:px-0"
|
||||
className="m-0 flex min-w-max list-none snap-x snap-proximity gap-0 px-0 pb-1"
|
||||
>
|
||||
{actions?.map(({ id, ...button }) => (
|
||||
<li key={id ?? button.href ?? button.label} className="m-0 list-none p-0">
|
||||
|
|
|
|||
|
|
@ -193,8 +193,8 @@ describe('CampaignHomeActionStrip', () => {
|
|||
const list = scroller?.querySelector('ul[role="list"]')
|
||||
expect(list).toBeTruthy()
|
||||
expect(list?.className).toContain('gap-0')
|
||||
expect(list?.className).toContain('px-4')
|
||||
expect(list?.className).toContain('md:px-0')
|
||||
expect(list?.className).toContain('px-0')
|
||||
expect(list?.className).not.toContain('px-4')
|
||||
expect(list?.className).not.toContain('gap-2')
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue