@khanacademy/wonder-blocks-cell 2.2.1 → 2.2.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @khanacademy/wonder-blocks-cell
2
2
 
3
+ ## 2.2.2
4
+
5
+ ### Patch Changes
6
+
7
+ - f74b7379: Fixes `CellCore` to set the styles properly (removed `marginLeft: auto` from accessory and expanded the content wrapper).
8
+
3
9
  ## 2.2.1
4
10
 
5
11
  ### Patch Changes
package/dist/es/index.js CHANGED
@@ -202,6 +202,8 @@ const styles$1 = StyleSheet.create({
202
202
  },
203
203
  content: {
204
204
  alignSelf: "center",
205
+ // Expand the content to fill the available space.
206
+ flex: 1,
205
207
  overflowWrap: "break-word"
206
208
  },
207
209
  accessory: {
@@ -215,11 +217,7 @@ const styles$1 = StyleSheet.create({
215
217
  accessoryRight: {
216
218
  // The right accessory will have this color by default. Unless the
217
219
  // accessory element overrides that color internally.
218
- color: Color.offBlack64,
219
- // Align the right accessory to the right side of the cell, so we can
220
- // prevent the accessory from shifting left, if the content is too
221
- // short.
222
- marginLeft: "auto"
220
+ color: Color.offBlack64
223
221
  },
224
222
 
225
223
  /**
package/dist/index.js CHANGED
@@ -367,6 +367,8 @@ const styles = aphrodite__WEBPACK_IMPORTED_MODULE_1__["StyleSheet"].create({
367
367
  },
368
368
  content: {
369
369
  alignSelf: "center",
370
+ // Expand the content to fill the available space.
371
+ flex: 1,
370
372
  overflowWrap: "break-word"
371
373
  },
372
374
  accessory: {
@@ -380,11 +382,7 @@ const styles = aphrodite__WEBPACK_IMPORTED_MODULE_1__["StyleSheet"].create({
380
382
  accessoryRight: {
381
383
  // The right accessory will have this color by default. Unless the
382
384
  // accessory element overrides that color internally.
383
- color: _khanacademy_wonder_blocks_color__WEBPACK_IMPORTED_MODULE_4___default.a.offBlack64,
384
- // Align the right accessory to the right side of the cell, so we can
385
- // prevent the accessory from shifting left, if the content is too
386
- // short.
387
- marginLeft: "auto"
385
+ color: _khanacademy_wonder_blocks_color__WEBPACK_IMPORTED_MODULE_4___default.a.offBlack64
388
386
  },
389
387
 
390
388
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@khanacademy/wonder-blocks-cell",
3
- "version": "2.2.1",
3
+ "version": "2.2.2",
4
4
  "design": "v1",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -107,15 +107,16 @@ export const DetailCellWithCustomStyles: StoryComponentType = () => (
107
107
  title="Title for article item"
108
108
  subtitle1="Subtitle for article item"
109
109
  subtitle2="Subtitle for article item"
110
- leftAccessory={<Icon icon={icons.contentVideo} size="medium" />}
110
+ leftAccessory={<Icon icon={icons.caretLeft} size="small" />}
111
111
  leftAccessoryStyle={{
112
- minWidth: Spacing.xxLarge_48,
113
112
  alignSelf: "flex-start",
114
113
  }}
115
114
  rightAccessory={<Icon icon={icons.caretRight} size="small" />}
116
115
  rightAccessoryStyle={{
117
- minWidth: Spacing.medium_16,
118
- alignSelf: "flex-end",
116
+ alignSelf: "flex-start",
117
+ }}
118
+ style={{
119
+ textAlign: "center",
119
120
  }}
120
121
  />
121
122
  );
@@ -228,6 +228,8 @@ const styles = StyleSheet.create({
228
228
 
229
229
  content: {
230
230
  alignSelf: "center",
231
+ // Expand the content to fill the available space.
232
+ flex: 1,
231
233
  overflowWrap: "break-word",
232
234
  },
233
235
 
@@ -244,10 +246,6 @@ const styles = StyleSheet.create({
244
246
  // The right accessory will have this color by default. Unless the
245
247
  // accessory element overrides that color internally.
246
248
  color: Color.offBlack64,
247
- // Align the right accessory to the right side of the cell, so we can
248
- // prevent the accessory from shifting left, if the content is too
249
- // short.
250
- marginLeft: "auto",
251
249
  },
252
250
 
253
251
  /**