Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions apps/ui/shared/ui/detail.css
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,11 @@
text-align: left;
}

/* A link row stacks like a button row, not inline-flex as states.css makes links (#1676). */
.df-more-panel a.df-button {
display: block;
}

.df-more-panel .df-button:hover:not(:disabled) {
background: var(--df-color-hover);
}
Expand Down
9 changes: 9 additions & 0 deletions apps/ui/store/src/features/offers/offersCss.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { readFileSync } from 'node:fs'
import { createRequire } from 'node:module'
import { describe, expect, it } from 'vitest'

// happy-dom has no layout, so this reads the rules (#1651), as #1398's carts test does.
Expand All @@ -15,3 +16,11 @@ describe('the Offers list’s row Actions menu', () => {
expect(css).toMatch(/\.df-offers-row \{[^}]*min-width: 820px;/)
})
})

describe('the row Actions menu’s link rows', () => {
const css = readFileSync(createRequire(import.meta.url).resolve('@dripfunnel/shared/ui/detail.css'), 'utf8').replace(/\s+/g, ' ')

it('put the description under the heading, as the button rows do (#1676)', () => {
expect(/\.df-more-panel a\.df-button \{([^}]*)\}/.exec(css)?.[1]).toContain('display: block;')
})
})
Loading