Skip to content

Commit 14eff17

Browse files
authored
refactor(icon): manual samples remove deprecated modules (#858)
1 parent 236cf5c commit 14eff17

3 files changed

Lines changed: 3 additions & 7 deletions

File tree

samples/layouts/icon/sizing/src/index.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@ import React from 'react';
22
import ReactDOM from 'react-dom/client';
33
import './index.css';
44
import './IconSizing.css';
5-
import { IgrIcon, IgrIconModule, registerIconFromText } from 'igniteui-react';
5+
import { IgrIcon, registerIconFromText } from 'igniteui-react';
66
import 'igniteui-webcomponents/themes/light/bootstrap.css';
77

8-
IgrIconModule.register();
9-
108
const buildIcon =
119
'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M22.7 19l-9.1-9.1c.9-2.3.4-5-1.5-6.9-2-2-5-2.4-7.4-1.3L9 6 6 9 1.6 4.7C.4 7.1.9 10.1 2.9 12.1c1.9 1.9 4.6 2.4 6.9 1.5l9.1 9.1c.4.4 1 .4 1.4 0l2.3-2.3c.5-.4.5-1.1.1-1.4z"/></svg>';
1210

samples/layouts/icon/styling/src/IconStyling.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77

88
igc-icon {
99
--size: 48px;
10-
color: olive;
10+
color: var(--ig-primary-500);
1111
}

samples/layouts/icon/styling/src/index.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@ import React from 'react';
22
import ReactDOM from 'react-dom/client';
33
import './index.css';
44
import './IconStyling.css';
5-
import { IgrIcon, IgrIconModule, registerIconFromText } from 'igniteui-react';
5+
import { IgrIcon, registerIconFromText } from 'igniteui-react';
66
import 'igniteui-webcomponents/themes/light/bootstrap.css';
77

8-
IgrIconModule.register();
9-
108
const searchIcon =
119
'<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0z" fill="none"/><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></svg>';
1210

0 commit comments

Comments
 (0)