Skip to content

Update button samples to v19 #828

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: vnext
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions samples/inputs/button/contained/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
import { IgrButton, IgrButtonModule } from 'igniteui-react';
import { IgrButton } from 'igniteui-react';
import 'igniteui-webcomponents/themes/light/bootstrap.css';

IgrButtonModule.register();

export default class ButtonContained extends React.Component<any, any> {

constructor(props: any) {
Expand Down
4 changes: 1 addition & 3 deletions samples/inputs/button/download/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
import { IgrButton, IgrButtonModule } from 'igniteui-react';
import { IgrButton } from 'igniteui-react';
import 'igniteui-webcomponents/themes/light/bootstrap.css';

IgrButtonModule.register();

export default class ButtonDownload extends React.Component<any, any> {

constructor(props: any) {
Expand Down
4 changes: 1 addition & 3 deletions samples/inputs/button/fab/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
import { IgrButton, IgrButtonModule } from 'igniteui-react';
import { IgrButton } from 'igniteui-react';
import 'igniteui-webcomponents/themes/light/bootstrap.css';

IgrButtonModule.register();

export default class ButtonFab extends React.Component<any, any> {

constructor(props: any) {
Expand Down
4 changes: 1 addition & 3 deletions samples/inputs/button/flat/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
import { IgrButton, IgrButtonModule } from 'igniteui-react';
import { IgrButton } from 'igniteui-react';
import 'igniteui-webcomponents/themes/light/bootstrap.css';

IgrButtonModule.register();

export default class ButtonFlat extends React.Component<any, any> {

constructor(props: any) {
Expand Down
4 changes: 1 addition & 3 deletions samples/inputs/button/outlined/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
import { IgrButton, IgrButtonModule } from 'igniteui-react';
import { IgrButton } from 'igniteui-react';
import 'igniteui-webcomponents/themes/light/bootstrap.css';

IgrButtonModule.register();

export default class ButtonOutlined extends React.Component<any, any> {

constructor(props: any) {
Expand Down
4 changes: 1 addition & 3 deletions samples/inputs/button/overview/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@ import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
import './ButtonOverviewStyle.css';
import { IgrButton, IgrButtonModule } from 'igniteui-react';
import { IgrButton } from 'igniteui-react';
import 'igniteui-webcomponents/themes/light/bootstrap.css';

IgrButtonModule.register();

export default class ButtonOverview extends React.Component<any, any> {

constructor(props: any) {
Expand Down
10 changes: 3 additions & 7 deletions samples/inputs/button/size/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,9 @@ import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
import './ButtonSizingStyle.css';
import { IgrButton, IgrRadio, IgrRadioGroup, IgrButtonModule, IgrRadioModule, IgrRadioGroupModule } from 'igniteui-react';
import { IgrButton, IgrRadio, IgrRadioGroup } from 'igniteui-react';
import 'igniteui-webcomponents/themes/light/bootstrap.css';

IgrButtonModule.register();
IgrRadioGroupModule.register();
IgrRadioModule.register();

export default class ButtonSize extends React.Component<any, any> {

constructor(props: any) {
Expand All @@ -21,10 +17,10 @@ export default class ButtonSize extends React.Component<any, any> {
return (
<div className="container sample">
<IgrRadioGroup alignment="horizontal" style={{display: 'flex', margin: '0 auto', width: '15%'}}>
<IgrRadio name="size" value="small" labelPosition="after" checked={true} onChange={this.onRadioChange}>
<IgrRadio name="size" value="small" labelPosition="after" onChange={this.onRadioChange}>
<span>Small</span>
</IgrRadio>
<IgrRadio name="size" value="medium" labelPosition="after" onChange={this.onRadioChange}>
<IgrRadio name="size" value="medium" labelPosition="after" onChange={this.onRadioChange} checked={this.state.size === "medium"}>
<span>Medium</span>
</IgrRadio>
<IgrRadio name="size" value="large" labelPosition="after" onChange={this.onRadioChange}>
Expand Down
4 changes: 1 addition & 3 deletions samples/inputs/button/styling/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@ import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
import './ButtonStyle.css';
import { IgrButton, IgrButtonModule } from 'igniteui-react';
import { IgrButton } from 'igniteui-react';
import 'igniteui-webcomponents/themes/light/bootstrap.css';

IgrButtonModule.register();

export default class ButtonStyling extends React.Component<any, any> {

constructor(props: any) {
Expand Down