@aurora-ds/components 1.9.0 → 1.9.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/dist/esm/index.js CHANGED
@@ -265,13 +265,20 @@ const COLLAPSED_DRAWER_WIDTH = 58;
265
265
  * (Box `px="sm"` → theme.spacing.sm = 0.5rem = 8px).
266
266
  */
267
267
  const DRAWER_BODY_HORIZONTAL_PADDING = 8;
268
+ /**
269
+ * The drawer root has `borderRight: 1px solid` with `box-sizing: border-box`,
270
+ * so the 1px border is consumed from the declared width, reducing the inner
271
+ * content area by 1px. We subtract it here so the item widths stay flush.
272
+ */
273
+ const DRAWER_BORDER_WIDTH = 1;
268
274
  /**
269
275
  * DrawerItem widths (px), always derived from the drawer width minus the body
270
- * horizontal padding. Using explicit widths (instead of `width: 100%`) lets the
271
- * item animate its own width in sync with the drawer for a smooth transition.
276
+ * horizontal padding and the drawer border. Using explicit widths (instead of
277
+ * `width: 100%`) lets the item animate its own width in sync with the drawer
278
+ * for a smooth transition.
272
279
  */
273
- const EXPANDED_DRAWER_ITEM_WIDTH = EXPANDED_DRAWER_WIDTH - DRAWER_BODY_HORIZONTAL_PADDING * 2; // 264
274
- const COLLAPSED_DRAWER_ITEM_WIDTH = COLLAPSED_DRAWER_WIDTH - DRAWER_BODY_HORIZONTAL_PADDING * 2; // 44
280
+ const EXPANDED_DRAWER_ITEM_WIDTH = EXPANDED_DRAWER_WIDTH - DRAWER_BODY_HORIZONTAL_PADDING * 2 - DRAWER_BORDER_WIDTH; // 223
281
+ const COLLAPSED_DRAWER_ITEM_WIDTH = COLLAPSED_DRAWER_WIDTH - DRAWER_BODY_HORIZONTAL_PADDING * 2 - DRAWER_BORDER_WIDTH; // 41
275
282
 
276
283
  /**
277
284
  * Width of the focus ring outline. Kept thick enough to be clearly visible
@@ -4100,6 +4107,7 @@ const MENU_ITEM_STYLES = createStyles((theme) => {
4100
4107
  transition: `background-color ${theme.transition.fast}, border-color ${theme.transition.fast}`,
4101
4108
  '&[data-selected]': {
4102
4109
  backgroundColor: c.primarySubtle,
4110
+ borderLeftColor: c.primaryMain,
4103
4111
  color: c.primaryMain,
4104
4112
  fontWeight: theme.fontWeight.medium,
4105
4113
  },