Use margin, not padding as that causes weird looking buttons if slotted.
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@tp/tp-input",
|
"name": "@tp/tp-input",
|
||||||
"version": "1.1.0",
|
"version": "1.1.1",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "tp-input.js",
|
"main": "tp-input.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -79,12 +79,12 @@ class TpInput extends BaseElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.prefix ::slotted([slot="prefix"]) {
|
.prefix ::slotted([slot="prefix"]) {
|
||||||
padding-right: 5px;
|
margin-right: 5px;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.suffix ::slotted([slot="suffix"]) {
|
.suffix ::slotted([slot="suffix"]) {
|
||||||
padding-left: 5px;
|
margin-left: 5px;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
`
|
`
|
||||||
|
|||||||
Reference in New Issue
Block a user