@aquera/nile-elements 2.0.27 → 2.0.28

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
@@ -3,7 +3,7 @@
3
3
  "description": "Webcomponent nile-elements following open-wc recommendations",
4
4
  "license": "MIT",
5
5
  "author": "nile-elements",
6
- "version": "2.0.27",
6
+ "version": "2.0.28",
7
7
  "main": "dist/src/index.js",
8
8
  "type": "module",
9
9
  "module": "dist/src/index.js",
@@ -680,4 +680,14 @@ describe('NileRteLink', () => {
680
680
  const styleTags = el.querySelectorAll('style[data-rte-link-style]');
681
681
  expect(styleTags.length).to.equal(1);
682
682
  });
683
+ it('46. popover background is themed, not hardcoded white (PC-3998)', async () => {
684
+ editor = createEditor();
685
+ const el = await fixture<NileRteLink>(
686
+ html`<nile-rte-link .editorEl=${editor}></nile-rte-link>`
687
+ );
688
+ const css = el.querySelector('style[data-rte-link-style]')!.textContent!;
689
+ expect(css).to.not.match(/background:\s*white/);
690
+ expect(css).to.contain('--ng-colors-bg-primary');
691
+ });
692
+
683
693
  });
@@ -35,7 +35,7 @@ export class NileRteLink extends LitElement {
35
35
  nile-popover.rte-link-popover::part(popover) {
36
36
  min-width: 340px;
37
37
  max-width: 420px;
38
- background: white;
38
+ background: var(--nile-colors-white-base, var(--ng-colors-bg-primary));
39
39
  border: 1px solid var(--nile-colors-neutral-400, var(--ng-componentcolors-utility-gray-400));
40
40
  border-radius: 8px;
41
41
  padding: 0;