Skip to content

Commit 7f66dd2

Browse files
zeroedinbennypowers
authored andcommitted
fix(clipboard-copy): adapt to font-size changes
1 parent 5905246 commit 7f66dd2

File tree

2 files changed

+18
-10
lines changed

2 files changed

+18
-10
lines changed

elements/pf-clipboard-copy/pf-clipboard-copy.css

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,17 @@
33
flex-direction: column;
44
}
55

6-
#input-group {
6+
#input-group,
7+
#wrapper,
8+
pf-tooltip,
9+
pf-button {
710
display: flex;
811
}
912

13+
pf-button {
14+
height: 100%;
15+
}
16+
1017
pf-tooltip::part(invoker) {
1118
display: flex;
1219
height: 100%;
@@ -16,7 +23,6 @@ pf-tooltip::part(invoker) {
1623
--pf-icon--size: 16px !important;
1724
}
1825

19-
2026
#input-group > * + * {
2127
margin-left: -1px;
2228
}

elements/pf-clipboard-copy/pf-clipboard-copy.ts

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,16 @@ export class PfClipboardCopy extends BaseClipboardCopy {
8080
return html`
8181
<div class="container ${classMap({ code, expanded, inline, compact, block, })}">
8282
<div id="input-group">
83-
<pf-button id="expand-button"
84-
plain
85-
variant="control"
86-
label="EXPAND"
87-
?inert="${!expandable}"
88-
@click="${this.#onClick}">
89-
<pf-icon icon="chevron-right"></pf-icon>
90-
</pf-button>
83+
<div id="wrapper">
84+
<pf-button id="expand-button"
85+
plain
86+
variant="control"
87+
label="EXPAND"
88+
?inert="${!expandable}"
89+
@click="${this.#onClick}">
90+
<pf-icon icon="chevron-right"></pf-icon>
91+
</pf-button>
92+
</div>
9193
<span ?hidden="${!(inline || compact)}">${this.value}</span>
9294
<input
9395
?hidden="${inline || compact}"

0 commit comments

Comments
 (0)