js-kompo-utils 1.0.9 → 1.0.10

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": "js-kompo-utils",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "",
5
5
  "main": "app.js",
6
6
  "scripts": {
@@ -32,7 +32,7 @@ export class Bubble {
32
32
  this.closeBtn = document.createElement('button');
33
33
  this.closeBtn.className = 'tutorial-close-btn';
34
34
  this.closeBtn.setAttribute('aria-label', 'Close tutorial');
35
- this.closeBtn.textContent = '\u00D7';
35
+ this.closeBtn.innerHTML = '<svg width="14" height="14" viewBox="0 0 14 14" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><line x1="1" y1="1" x2="13" y2="13"/><line x1="13" y1="1" x2="1" y2="13"/></svg>';
36
36
  this.el.appendChild(this.closeBtn);
37
37
 
38
38
  this.arrowEl = document.createElement('div');
@@ -216,25 +216,25 @@
216
216
  // === Close button (top-right of bubble) ===
217
217
  .tutorial-close-btn {
218
218
  position: absolute;
219
- top: 8px;
220
- right: 8px;
221
- width: 28px;
222
- height: 28px;
219
+ top: 10px;
220
+ right: 10px;
221
+ width: 24px;
222
+ height: 24px;
223
223
  border: none;
224
224
  border-radius: 50%;
225
- background: rgba(0, 0, 0, 0.06);
226
- color: #999;
227
- font-size: 18px;
225
+ background: none;
226
+ color: #aaa;
227
+ font-size: 20px;
228
228
  line-height: 1;
229
229
  cursor: pointer;
230
230
  display: flex;
231
231
  align-items: center;
232
232
  justify-content: center;
233
- transition: background 0.15s, color 0.15s;
234
- z-index: 1;
233
+ transition: color 0.15s;
234
+ z-index: 2;
235
+ padding: 0;
235
236
 
236
237
  &:hover {
237
- background: rgba(0, 0, 0, 0.12);
238
238
  color: #333;
239
239
  }
240
240
  }