@salesforcedevs/dx-components 1.3.23 → 1.3.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforcedevs/dx-components",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.25",
|
|
4
4
|
"description": "DX Lightning web components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"engines": {
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"eventsourcemock": "^2.0.0",
|
|
39
39
|
"luxon": "^3.1.0"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "47eb24c8ff76bf71e4b8eff4e2f9ced63a4d340f"
|
|
42
42
|
}
|
package/src/modules/dx/hr/hr.css
CHANGED
|
@@ -9,7 +9,6 @@ p,
|
|
|
9
9
|
h2 {
|
|
10
10
|
display: flex;
|
|
11
11
|
flex-direction: row;
|
|
12
|
-
padding: 0 var(--dx-c-hr-padding-horizontal);
|
|
13
12
|
font-family: var(--dx-g-font-display);
|
|
14
13
|
font-size: var(--dx-g-text-sm);
|
|
15
14
|
color: var(--dx-g-blue-vibrant-20);
|
|
@@ -42,7 +41,6 @@ dx-button {
|
|
|
42
41
|
display: flex;
|
|
43
42
|
width: 100%;
|
|
44
43
|
text-transform: capitalize;
|
|
45
|
-
padding: 0 var(--dx-c-hr-padding-horizontal);
|
|
46
44
|
}
|
|
47
45
|
|
|
48
46
|
dx-button::before {
|
package/src/modules/dx/hr/hr.ts
CHANGED
|
@@ -7,6 +7,7 @@ export default class Hr extends LightningElement {
|
|
|
7
7
|
@api href?: string | null;
|
|
8
8
|
@api target: string | null = "_top";
|
|
9
9
|
@api spacing: string | null = "2xl";
|
|
10
|
+
@api noPadding: boolean = false;
|
|
10
11
|
@api variant: HrVariant | null = null;
|
|
11
12
|
|
|
12
13
|
private get ariaRole() {
|
|
@@ -14,9 +15,14 @@ export default class Hr extends LightningElement {
|
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
private get style() {
|
|
17
|
-
|
|
18
|
+
const spacing = this.spacing
|
|
18
19
|
? `margin: var(--dx-g-spacing-${this.spacing}) 0;`
|
|
19
20
|
: "";
|
|
21
|
+
const padding = this.noPadding
|
|
22
|
+
? ""
|
|
23
|
+
: "padding: 0 var(--dx-c-hr-padding-horizontal);";
|
|
24
|
+
|
|
25
|
+
return `${spacing}${padding}`;
|
|
20
26
|
}
|
|
21
27
|
|
|
22
28
|
private get isButtonVariant() {
|