@flexiui/svelte-rich-text 0.0.70 → 0.0.72

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.
@@ -953,6 +953,7 @@ function onOpenChangeHighlight(open: boolean) {
953
953
  {/if}
954
954
  </div>
955
955
  {/if}
956
+
956
957
  <div
957
958
  class="fl-toolbar-dropdown-panel"
958
959
  bind:this={tooltip}
@@ -1308,7 +1309,13 @@ function onOpenChangeHighlight(open: boolean) {
1308
1309
  }}
1309
1310
  appendTo={document.body}
1310
1311
  >
1311
- <div data-test-id="bubble-menu" class="fl-bubble-menu flex">
1312
+ <div
1313
+ data-test-id="bubble-menu"
1314
+ class="fl-bubble-menu flex"
1315
+ style="
1316
+ --fl-editor-accent-color: {editorConfig.editorAccentColor};
1317
+ "
1318
+ >
1312
1319
  {#each bubbleMenuGroups as bubbleMenuGroup}
1313
1320
  {#if bubbleMenuGroup.length > 0}
1314
1321
  <div role="group" class="fl-rich-text-toolbar-group">
package/dist/styles.css CHANGED
@@ -123,66 +123,66 @@
123
123
  background: transparent;
124
124
  line-height: 1.6;
125
125
  }
126
+ }
126
127
 
127
- .fl-bubble-menu {
128
- padding: 6px;
129
- background: #242424b0;
130
- border: 1px solid #ffffff12;
131
- backdrop-filter: blur(16px);
132
- border-radius: 14px;
128
+ .fl-bubble-menu {
129
+ padding: 6px;
130
+ background: #242424b0;
131
+ border: 1px solid #ffffff12;
132
+ backdrop-filter: blur(16px);
133
+ border-radius: 14px;
134
+ display: flex;
135
+ gap: 5px;
136
+ position: relative;
137
+ z-index: var(--fl-toolbar-z-index, 10);
138
+
139
+
140
+ .fl-bubble-menu-mark-button {
141
+ border-radius: 9px;
142
+ border: none;
133
143
  display: flex;
134
- gap: 5px;
135
- position: relative;
136
- z-index: var(--fl-toolbar-z-index, 10);
137
-
138
-
139
- .fl-bubble-menu-mark-button {
140
- border-radius: 9px;
141
- border: none;
142
- display: flex;
143
- align-items: center;
144
- justify-content: center;
145
- padding: 6px 11px;
146
- min-width: 30px;
147
- min-height: 30px;
148
- background: rgba(255, 255, 255, 0.1);
149
- transition: background 0.3s ease;
150
- cursor: pointer;
151
-
152
- &.fl-bubble-menu-mark-button {
153
- padding-inline: 6px;
154
-
155
- svg {
156
- width: 16px;
157
- height: 16px;
158
-
159
- &.toogle-dropdown-button-icon {
160
- width: 8px;
161
- margin: 0 2px 0 6px;
162
- }
144
+ align-items: center;
145
+ justify-content: center;
146
+ padding: 6px 11px;
147
+ min-width: 30px;
148
+ min-height: 30px;
149
+ background: rgba(255, 255, 255, 0.1);
150
+ transition: background 0.3s ease;
151
+ cursor: pointer;
152
+
153
+ &.fl-bubble-menu-mark-button {
154
+ padding-inline: 6px;
155
+
156
+ svg {
157
+ width: 16px;
158
+ height: 16px;
159
+
160
+ &.toogle-dropdown-button-icon {
161
+ width: 8px;
162
+ margin: 0 2px 0 6px;
163
163
  }
164
164
  }
165
+ }
165
166
 
166
- &.is-active {
167
- background: var(--fl-editor-accent-color);
168
- color: white;
169
-
170
- &.accent-soft {
171
- background: transparent;
172
- color: var(--fl-editor-accent-color);
173
- position: relative;
174
-
175
- &::after {
176
- content: "";
177
- position: absolute;
178
- width: 100%;
179
- height: 100%;
180
- left: 0;
181
- top: 0;
182
- background: var(--fl-editor-accent-color);
183
- opacity: 0.15;
184
- border-radius: inherit;
185
- }
167
+ &.is-active {
168
+ background: var(--fl-editor-accent-color);
169
+ color: white;
170
+
171
+ &.accent-soft {
172
+ background: transparent;
173
+ color: var(--fl-editor-accent-color);
174
+ position: relative;
175
+
176
+ &::after {
177
+ content: "";
178
+ position: absolute;
179
+ width: 100%;
180
+ height: 100%;
181
+ left: 0;
182
+ top: 0;
183
+ background: var(--fl-editor-accent-color);
184
+ opacity: 0.15;
185
+ border-radius: inherit;
186
186
  }
187
187
  }
188
188
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flexiui/svelte-rich-text",
3
- "version": "0.0.70",
3
+ "version": "0.0.72",
4
4
  "description": "A lightweight and flexible rich text editor component for Svelte",
5
5
  "keywords": [
6
6
  "svelte",