kopia lustrzana https://github.com/shoelace-style/shoelace
26 wiersze
587 B
TypeScript
26 wiersze
587 B
TypeScript
import { css } from 'lit';
|
|
import buttonStyles from '../button/button.styles';
|
|
|
|
export default css`
|
|
${buttonStyles}
|
|
|
|
label {
|
|
display: inline-block;
|
|
position: relative;
|
|
}
|
|
|
|
/* We use a hidden input so constraint validation errors work, since they don't appear to show when used with buttons.
|
|
We can't actually hide it, though, otherwise the messages will be suppressed by the browser. */
|
|
.hidden-input {
|
|
all: unset;
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
bottom: 0;
|
|
right: 0;
|
|
outline: dotted 1px red;
|
|
opacity: 0;
|
|
z-index: -1;
|
|
}
|
|
`;
|