playbook_ui 13.24.0.pre.alpha.PLAY998backgroundkitremoveemptyinlinline2666 → 13.24.0.pre.alpha.PLAY1181circleiconkitfixsizingerrorglobalspacingprops2675

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d91c1689890fbb2e1392ecc83ad7b869eea650744de932d645ed6ea4e566d161
4
- data.tar.gz: e53e677351b6221797ed074c4cfdcb6ea842c33af17060167257101af7978db2
3
+ metadata.gz: 64d3b88ddbf80e9899ea2149fe1105a42a170483991d306eb8cc544ee5aa46a2
4
+ data.tar.gz: 16554c57ae51a485f41faa858384c2d477c3e65da1a750d6a4c18f9987fe2c4e
5
5
  SHA512:
6
- metadata.gz: da048d8e1f09cb0d4640c8a1f50e6a1acaf5bb05707d9a843dc011b963b683e8931ec13f80d3f4c98a320addbacd3ca3e9c2a9eca20ff3242d05f4336362f156
7
- data.tar.gz: 19a49a4274d753b4b496e8299df73a224ad6356f3ba2bf04d0817d9a69272b48f0c41eab40cb05a46a3dd041ce38a8f67b6cfaffdcf4a7c9092143b1e91950d4
6
+ metadata.gz: cb7566ccb322412f6e3a3648fe738df099de01d39af408cb166676b8e9f05a85f4bd348b9b94928ff78950870ddc3487638d9b5eb32a62037d8834b599dacf96
7
+ data.tar.gz: 3a6a4e0eb09706caddde216f771833ae19ddc180ce82324e584a669c6edc2b6e5bc85e56454fb99282b417a0ff9c1efbdad96b1e7b783f0163e662e3a9faa495
@@ -65,7 +65,7 @@ const getResponsiveValue = <T extends string | undefined>(prop: ResponsiveProp<T
65
65
 
66
66
  const Background = (props: BackgroundProps): React.ReactElement => {
67
67
  const {
68
- alt = undefined,
68
+ alt = '',
69
69
  aria = {},
70
70
  backgroundColor = 'light',
71
71
  backgroundPosition = '',
@@ -130,13 +130,11 @@ const Background = (props: BackgroundProps): React.ReactElement => {
130
130
  );
131
131
 
132
132
  const backgroundStyle = {
133
+ backgroundImage: resImageUrl ? `url(${resImageUrl})` : undefined,
134
+ backgroundRepeat: resBackgroundRepeat || undefined,
135
+ backgroundSize: resBackgroundSize || undefined,
136
+ backgroundPosition: resBackgroundPosition || undefined,
133
137
  backgroundColor: customColor || undefined,
134
- ...(resImageUrl !== '' ? {
135
- backgroundImage: resImageUrl ? `url(${resImageUrl})` : undefined,
136
- backgroundRepeat: resBackgroundRepeat || undefined,
137
- backgroundPosition: resBackgroundPosition || undefined,
138
- backgroundSize: resBackgroundSize || undefined,
139
- } : {})
140
138
  };
141
139
 
142
140
  const Tag: React.ReactElement | any = `${tag}`;
@@ -51,7 +51,7 @@ $pb_icon_circle_sizes: (
51
51
  }
52
52
 
53
53
  @each $name, $size in $pb_icon_circle_sizes {
54
- &[class*=_#{$name}] {
54
+ &[class*=_size_#{$name}] {
55
55
  width: $size;
56
56
  height: $size;
57
57
  border-radius: $size/2;
@@ -43,7 +43,7 @@ const IconCircle = (props: IconCircleProps) => {
43
43
  const ariaProps = buildAriaProps(aria)
44
44
  const dataProps = buildDataProps(data)
45
45
  const htmlProps = buildHtmlProps(htmlOptions)
46
- const classes = classnames(buildCss('pb_icon_circle_kit', size, variant), globalProps(props), className)
46
+ const classes = classnames(buildCss('pb_icon_circle_kit', `size_${size}`, variant), globalProps(props), className)
47
47
 
48
48
 
49
49
  return (
@@ -14,7 +14,7 @@ module Playbook
14
14
  default: "default"
15
15
 
16
16
  def classname
17
- generate_classname("pb_icon_circle_kit", size, variant)
17
+ generate_classname("pb_icon_circle_kit", "size_#{size}", variant)
18
18
  end
19
19
  end
20
20
  end
@@ -16,7 +16,7 @@ describe("IconCircle Kit", () => {
16
16
  )
17
17
 
18
18
  const kit = screen.getByTestId(testId)
19
- expect(kit).toHaveClass("pb_icon_circle_kit_md_default")
19
+ expect(kit).toHaveClass("pb_icon_circle_kit_size_md_default")
20
20
  })
21
21
 
22
22
  test("renders icon", () => {
@@ -66,7 +66,7 @@ describe("IconCircle Kit", () => {
66
66
  />
67
67
  )
68
68
  const kit = screen.getByTestId(testId)
69
- expect(kit).toHaveClass(`pb_icon_circle_kit_sm_${colorVariant}`)
69
+ expect(kit).toHaveClass(`pb_icon_circle_kit_size_sm_${colorVariant}`)
70
70
 
71
71
  cleanup()
72
72
  })
@@ -89,7 +89,7 @@ describe("IconCircle Kit", () => {
89
89
  />
90
90
  )
91
91
  const kit = screen.getByTestId(testId)
92
- expect(kit).toHaveClass(`pb_icon_circle_kit_${sizeVariant}_default`)
92
+ expect(kit).toHaveClass(`pb_icon_circle_kit_size_${sizeVariant}_default`)
93
93
 
94
94
  cleanup()
95
95
  })