Skip to content

Commit e211096

Browse files
author
Sara Dahan
committed
chore(label-group): fix whitespace and formatting in demos
1 parent 5c721a7 commit e211096

File tree

5 files changed

+6
-17
lines changed

5 files changed

+6
-17
lines changed

elements/pf-label-group/demo/label-group-closeable.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<pf-label-group closeable>
22
<h2 slot="category">group name</h2>
3-
<pf-label color="red" icon="info-circle" removable>label-1</pf-label>
3+
<pf-label color="red" icon="info-circle" removable>label-1</pf-label>
44
<pf-label color="green" icon="info-circle" removable>label-2</pf-label>
55
<pf-label color="blue" icon="info-circle" removable>label-3</pf-label>
66
</pf-label-group>

elements/pf-label-group/demo/label-group-with-a-very-long-name.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
<pf-label-group >
2+
<pf-label-group>
33
<h2 slot="category">label group with a very long name</h2>
44
<pf-label color="yellow" icon="info-circle" removable>label-1</pf-label>
55
<pf-label color="red" icon="info-circle" removable>label-2</pf-label>

elements/pf-label-group/demo/label-group-with-overflow-labels.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11

2-
<pf-label-group closeable num-labels="3" >
2+
<pf-label-group closeable num-labels="3">
33
<h2 slot="category">group name</h2>
4-
54
<pf-label color="orange" icon="info-circle" removable>label-1</pf-label>
65
<pf-label color="purple" icon="info-circle" removable>label-2</pf-label>
76
<pf-label color="blue" icon="info-circle" removable>label-3</pf-label>

elements/pf-label-group/demo/label-group.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
<pf-label color="green">Green Label</pf-label>
44
<pf-label color="orange">Orange Label</pf-label>
55
<pf-label color="red">Red Label</pf-label>
6-
76
</pf-label-group>
87

98
<script type="module">

elements/pf-label-group/pf-label-group.css

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
:host {
32
display: flex;
43
flex-direction: row;
@@ -13,10 +12,7 @@ pf-button {
1312
--pf-c-button--PaddingRight: var(--pf-c-label__c-button--PaddingRight, var(--pf-global--spacer--sm, 0.5rem));
1413
--pf-c-button--PaddingBottom: var(--pf-c-label__c-button--PaddingBottom, var(--pf-global--spacer--xs, 0.25rem));
1514
--pf-c-button--PaddingLeft: var(--pf-c-label__c-button--PaddingLeft, var(--pf-global--spacer--sm, 0.5rem));
16-
margin: var(--pf-c-label__c-button--MarginTop, -0.5rem)
17-
var(--pf-c-label__c-button--MarginRight, -0.5rem)
18-
var(--pf-c-label__c-button--MarginBottom, -0.5rem)
19-
var(--pf-c-label__c-button--MarginLeft, 0.25rem);
15+
margin: var(--pf-c-label__c-button--MarginTop, -0.5rem) var(--pf-c-label__c-button--MarginRight, -0.5rem) var(--pf-c-label__c-button--MarginBottom, -0.5rem) var(--pf-c-label__c-button--MarginLeft, 0.25rem);
2016
}
2117

2218
.compact {
@@ -50,11 +46,9 @@ pf-button {
5046
border: 1px solid #d2d2d2;
5147
border-radius: 6px;
5248
background-color: #fff;
53-
5449
align-items: center;
5550
}
5651

57-
5852
:host([orientation="horizontal"]) #outer {
5953
flex-direction: row;
6054
}
@@ -66,13 +60,10 @@ pf-button {
6660

6761
::slotted([slot="category"]) {
6862
display: inline-block;
69-
max-width: 16ch;
63+
max-width: 16ch;
7064
overflow: hidden;
7165
text-overflow: ellipsis;
7266
white-space: nowrap;
7367
vertical-align: middle;
7468
cursor: default;
75-
}
76-
77-
::slotted([slot="category"][title]):hover {
78-
}
69+
}

0 commit comments

Comments
 (0)