@brillout/docpress 0.10.12 → 0.10.13

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/MenuModal.tsx CHANGED
@@ -148,8 +148,6 @@ function CloseButton({ className }: { className: string }) {
148
148
  className={className}
149
149
  onClick={closeMenuModal}
150
150
  style={{ position: 'fixed', top: 0, right: 0, zIndex: 10, padding: 11, cursor: 'pointer' }}
151
- aria-label={'Escape\nCtrl\xa0+\xa0M'}
152
- data-label-shift
153
151
  >
154
152
  <svg width="48.855" height="48.855" version="1.1" viewBox="0 0 22.901 22.901" xmlns="http://www.w3.org/2000/svg">
155
153
  <circle
package/css/tooltip.css CHANGED
@@ -7,6 +7,12 @@
7
7
  position: relative;
8
8
  }
9
9
  [aria-label]:hover::before {
10
+ opacity: 1;
11
+ }
12
+ [aria-label]::before {
13
+ opacity: 0;
14
+ transition: opacity 0.3s ease-in-out;
15
+ pointer-events: none;
10
16
  font-family: monospace;
11
17
  font-size: 12px;
12
18
  content: attr(aria-label);
@@ -23,8 +29,9 @@
23
29
  letter-spacing: -0.02em;
24
30
  border: 1px solid #e3e3e3;
25
31
  z-index: 1;
26
- }
27
- [data-label-shift]::before {
28
- margin-left: -10px;
32
+ /* Atlernative: https://stackoverflow.com/questions/30086913/css-positioned-absolute-element-automatic-width-outside-of-parents-bounds/57379329#57379329
33
+ width: max-content;
34
+ */
35
+ white-space: nowrap;
29
36
  }
30
37
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brillout/docpress",
3
- "version": "0.10.12",
3
+ "version": "0.10.13",
4
4
  "type": "module",
5
5
  "dependencies": {
6
6
  "@brillout/picocolors": "^1.0.10",