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",
|
||||
"version": "1.1.0",
|
||||
"version": "1.1.1",
|
||||
"description": "",
|
||||
"main": "tp-input.js",
|
||||
"scripts": {
|
||||
|
||||
@@ -79,12 +79,12 @@ class TpInput extends BaseElement {
|
||||
}
|
||||
|
||||
.prefix ::slotted([slot="prefix"]) {
|
||||
padding-right: 5px;
|
||||
margin-right: 5px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.suffix ::slotted([slot="suffix"]) {
|
||||
padding-left: 5px;
|
||||
margin-left: 5px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
`
|
||||
|
||||
Reference in New Issue
Block a user