Skip to content

Commit 9cd062b

Browse files
committed
lib: Override read-only inline input padding
PF6 read-only inline inputs has cropped border when it is focused/selected within a modal and positioned at the end of a modal body. Adding small spacing at the end fixes the issue. Related-to: patternfly/patternfly#8150 Signed-off-by: Freya Gustavsson <freya@venefilyn.se>
1 parent 23ec371 commit 9cd062b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pkg/lib/patternfly/patternfly-6-overrides.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,3 +367,11 @@ $phone: 767px;
367367
.pf-v6-c-table .pf-v6-c-table__tbody :where(.pf-v6-c-table__th, .pf-v6-c-table__td)[data-label]::before {
368368
font-weight: var(--pf-t--global--font--weight--body--bold);
369369
}
370+
371+
// NOTE: PF6 read-only inline inputs has cropped border when it is focused/selected
372+
// within a modal and positioned at the end of a modal body.
373+
// Adding small spacing around it fixes the issue.
374+
// https://github.com/patternfly/patternfly/issues/8150
375+
.pf-v6-c-form-control.pf-m-readonly.pf-m-plain {
376+
padding-block-end: 2px;
377+
}

0 commit comments

Comments
 (0)