From 970227844c2d5c012e78dae71d9d9e9a4ce616af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benny=20Powers=20-=20=D7=A2=D7=9D=20=D7=99=D7=A9=D7=A8?= =?UTF-8?q?=D7=90=D7=9C=20=D7=97=D7=99!?= Date: Mon, 13 May 2024 21:05:00 +0300 Subject: [PATCH] fix(clipboard-copy): copy button height (#2761) Fixes #2741 --- .changeset/upset-birds-mix.md | 4 ++++ elements/pf-clipboard-copy/pf-clipboard-copy.css | 4 ++++ 2 files changed, 8 insertions(+) create mode 100644 .changeset/upset-birds-mix.md diff --git a/.changeset/upset-birds-mix.md b/.changeset/upset-birds-mix.md new file mode 100644 index 0000000000..151c29af59 --- /dev/null +++ b/.changeset/upset-birds-mix.md @@ -0,0 +1,4 @@ +--- +"@patternfly/elements": patch +--- +``: corrected size of copy button diff --git a/elements/pf-clipboard-copy/pf-clipboard-copy.css b/elements/pf-clipboard-copy/pf-clipboard-copy.css index 295220cc8a..7fa3b6dcdc 100644 --- a/elements/pf-clipboard-copy/pf-clipboard-copy.css +++ b/elements/pf-clipboard-copy/pf-clipboard-copy.css @@ -128,6 +128,10 @@ textarea { height: 100%; } +#copy-button { + height: calc(100% - var(--pf-c-button--PaddingTop) - var(--pf-c-button--PaddingBottom)); +} + .container:is(.compact, .inline) #input-group { display: contents; }