@thecb/components 10.6.5-beta.2 → 10.6.5-beta.3

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": "@thecb/components",
3
- "version": "10.6.5-beta.2",
3
+ "version": "10.6.5-beta.3",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "typings": "dist/index.d.ts",
@@ -41,7 +41,8 @@ const EditableList = ({
41
41
  qaPrefix,
42
42
  ariaLabel,
43
43
  editItemAriaRole = "",
44
- disablePlaceholder = false
44
+ disablePlaceholder = false,
45
+ actionTextExtraStyles = ""
45
46
  }) => {
46
47
  const addText = `Add a${
47
48
  itemName[0].match(/[aieouAIEOU]/) ? "n" : ""
@@ -133,7 +134,7 @@ const EditableList = ({
133
134
  variant="smallGhost"
134
135
  text="Remove"
135
136
  action={() => removeItem(item.id)}
136
- extraStyles={`min-width: 0;`}
137
+ extraStyles={`min-width: 0; ${actionTextExtraStyles}`}
137
138
  aria-label={`Remove ${ariaLabel || itemName}`}
138
139
  />
139
140
  )}
@@ -151,7 +152,7 @@ const EditableList = ({
151
152
  variant="smallGhost"
152
153
  text="Edit"
153
154
  action={() => editItem(item.id)}
154
- extraStyles={`min-width: 0;`}
155
+ extraStyles={`min-width: 0; ${actionTextExtraStyles}`}
155
156
  aria-label={`Edit ${ariaLabel || itemName}`}
156
157
  role={editItemAriaRole}
157
158
  />