@independo/capacitor-emoji-picker 1.0.1 → 1.0.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/plugin.js
CHANGED
|
@@ -190,6 +190,10 @@ var capacitorEmojiPicker = (function (exports, core) {
|
|
|
190
190
|
try {
|
|
191
191
|
picker = await this.createPickerElement();
|
|
192
192
|
picker.dataSource = getBundledEmojiDataSourceUrl();
|
|
193
|
+
// The sheet chrome around the picker doesn't yet adapt to dark mode (issue #19), so
|
|
194
|
+
// force the picker to light mode too rather than let it auto-follow
|
|
195
|
+
// `prefers-color-scheme` on its own and visually mismatch the chrome.
|
|
196
|
+
picker.classList.add('light');
|
|
193
197
|
}
|
|
194
198
|
catch (_d) {
|
|
195
199
|
throw new Error(ErrorCodes.NOT_IMPLEMENTED);
|