Skip to content

Commit 4dcec75

Browse files
committed
fix: urls for markdown editor icons
1 parent 0cb8e21 commit 4dcec75

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

packages/core/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
### Master
44

5+
### 1.3.5
6+
🐛 Bug / Fixes
7+
- Urls for markdown editor icons
8+
59
### 1.3.4
610
🐛 Bug / Fixes
711
- Fix docs related to ember-svg-jar and netlify demo

packages/core/addon/components/eui-icon/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ type IconColor = string | NamedColor;
2929

3030
export type IconSize = keyof typeof sizeToClassNameMap;
3131

32-
// const SVG_PREI : string | undefined = config['ember-eui'].svgPrefixPath || 'svg/assets';
32+
// const SVG_PREI : string | undefined = config['ember-eui'].svgPath || 'svg/assets';
3333

3434
export type EuiIconArgs = CommonArgs & {
3535
/**

packages/core/addon/components/eui-markdown-editor-footer/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ export default class EuiMarkdownEditorFooterComponent extends Component<EuiMarkd
1010

1111
get svgPath() {
1212
const config = getOwner(this).resolveRegistration('config:environment');
13-
const svgPath = config?.['@ember-eui/core']?.svgPath || 'svg';
13+
const svgPath = config?.['@ember-eui/core']?.svgPath || 'svg/';
1414
return svgPath;
1515
}
1616

1717
get markdownLogo() {
18-
return `${this.svgPath}/markdown-logo`;
18+
return `${this.svgPath}markdown-logo`;
1919
}
2020
}

packages/core/addon/components/eui-markdown-editor-toolbar/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export default class EuiMarkdownEditorToolbarComponent extends Component<EuiMark
3131

3232
get svgPath() {
3333
const config = getOwner(this).resolveRegistration('config:environment');
34-
const svgPath = config?.['@ember-eui/core']?.svgPath || 'svg';
34+
const svgPath = config?.['@ember-eui/core']?.svgPath || 'svg/';
3535
return svgPath;
3636
}
3737

@@ -55,7 +55,7 @@ export default class EuiMarkdownEditorToolbarComponent extends Component<EuiMark
5555
label: 'Task list',
5656
name: 'tl',
5757
useSvg: true,
58-
iconType: `${this.svgPath}/markdown-checkmark`
58+
iconType: `${this.svgPath}markdown-checkmark`
5959
}
6060
];
6161
}

0 commit comments

Comments
 (0)