mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-20 15:06:19 -05:00
ui: put the card mimetype accent on the bottom edge
Roland's call, and the better one: along the top the accent sat immediately against the poster's own top border, so the two edges competed. On the bottom it closes the card and reads as a property of the whole thing rather than a header rule.
This commit is contained in:
parent
31d20c04da
commit
dc811d08e3
3 changed files with 5 additions and 4 deletions
|
|
@ -440,13 +440,13 @@ describe('Card', () => {
|
|||
// files had dropped the accent because our Card had no equivalent.
|
||||
const {container} = renderUI(<Card title='Water Storage.pdf' color='red'/>);
|
||||
|
||||
expect(container.firstChild).toHaveStyle({borderTop: '3px solid var(--red)'});
|
||||
expect(container.firstChild).toHaveStyle({borderBottom: '3px solid var(--red)'});
|
||||
});
|
||||
|
||||
it('has no accent when no colour is given', () => {
|
||||
const {container} = renderUI(<Card title='Plain'/>);
|
||||
|
||||
expect(container.firstChild.style.borderTop).toBe('');
|
||||
expect(container.firstChild.style.borderBottom).toBe('');
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue