@tempots/beatui 1.7.2 → 1.7.5

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/beatui.css CHANGED
@@ -5695,15 +5695,29 @@ a:focus-visible {
5695
5695
 
5696
5696
  /*
5697
5697
  * On mobile, .bc-menu uses position:fixed for a bottom-sheet layout.
5698
- * The animation system sets transform on .bc-flyout-container, which per CSS spec
5699
- * changes the containing block for position:fixed descendants from the viewport
5700
- * to the transformed ancestor. Make .bc-flyout-container span the viewport on
5701
- * mobile so it provides a correctly-sized containing block for the fixed menu.
5698
+ * Any transform on an ancestor (even identity matrix) changes the containing
5699
+ * block for position:fixed from the viewport to that ancestor (CSS spec).
5700
+ * The animation system sets transform on .bc-flyout-container for slide/scale,
5701
+ * which breaks the menu's fixed positioning and causes it to size relative to
5702
+ * the 0-width flyout container instead of the viewport.
5703
+ *
5704
+ * Fix: disable transform on mobile when containing a menu. The opacity fade
5705
+ * animation still works. Slide/scale aren't meaningful for a bottom sheet.
5702
5706
  */
5703
5707
  @media (max-width: 640px) {
5704
5708
  .bc-flyout-container:has(.bc-menu) {
5709
+ transform: none !important;
5710
+ transition-property: opacity !important;
5711
+ }
5712
+
5713
+ /* Dark backdrop behind the bottom-sheet menu on mobile */
5714
+ .bc-flyout-container:has(.bc-menu)::before {
5715
+ content: '';
5705
5716
  position: fixed;
5706
5717
  inset: 0;
5718
+ background: rgba(0, 0, 0, 0.5);
5719
+ pointer-events: none;
5720
+ z-index: -1;
5707
5721
  }
5708
5722
  }
5709
5723
 
@@ -5361,15 +5361,29 @@ a:focus-visible {
5361
5361
 
5362
5362
  /*
5363
5363
  * On mobile, .bc-menu uses position:fixed for a bottom-sheet layout.
5364
- * The animation system sets transform on .bc-flyout-container, which per CSS spec
5365
- * changes the containing block for position:fixed descendants from the viewport
5366
- * to the transformed ancestor. Make .bc-flyout-container span the viewport on
5367
- * mobile so it provides a correctly-sized containing block for the fixed menu.
5364
+ * Any transform on an ancestor (even identity matrix) changes the containing
5365
+ * block for position:fixed from the viewport to that ancestor (CSS spec).
5366
+ * The animation system sets transform on .bc-flyout-container for slide/scale,
5367
+ * which breaks the menu's fixed positioning and causes it to size relative to
5368
+ * the 0-width flyout container instead of the viewport.
5369
+ *
5370
+ * Fix: disable transform on mobile when containing a menu. The opacity fade
5371
+ * animation still works. Slide/scale aren't meaningful for a bottom sheet.
5368
5372
  */
5369
5373
  @media (max-width: 640px) {
5370
5374
  .bc-flyout-container:has(.bc-menu) {
5375
+ transform: none !important;
5376
+ transition-property: opacity !important;
5377
+ }
5378
+
5379
+ /* Dark backdrop behind the bottom-sheet menu on mobile */
5380
+ .bc-flyout-container:has(.bc-menu)::before {
5381
+ content: '';
5371
5382
  position: fixed;
5372
5383
  inset: 0;
5384
+ background: rgba(0, 0, 0, 0.5);
5385
+ pointer-events: none;
5386
+ z-index: -1;
5373
5387
  }
5374
5388
  }
5375
5389
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tempots/beatui",
3
- "version": "1.7.2",
3
+ "version": "1.7.5",
4
4
  "type": "module",
5
5
  "main": "dist/index.umd.js",
6
6
  "module": "dist/index.es.js",