Skip to content
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

add toggle #64

Merged
merged 3 commits into from
May 2, 2023
Merged

add toggle #64

merged 3 commits into from
May 2, 2023

Conversation

kaiwerther
Copy link
Contributor

add toggle based on figma design

Copy link
Contributor

@verena-ifx verena-ifx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good from my side

src/components/ifxToggle/ifxToggle.tsx Show resolved Hide resolved
src/components/ifxToggle/ifxToggle.tsx Outdated Show resolved Hide resolved
src/components/ifxToggle/ifxToggle.tsx Outdated Show resolved Hide resolved
<div class={`pill-container ${this.checked ? 'checked' : ''}`} onClick={() => this.toggle()}>
<div class={`pill-switch ${this.checked ? 'checked' : ''}`} />
</div>
);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the Figma design of the toggle, the user should be allowed to add label inside two sides of a toggle.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

really?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Switch =/= Toggle
toggle

shadow: true,
})
export class ifxToggle {
@Prop({ mutable: true }) checked: boolean = false;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Outline variant is missing.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no Outline Variant in Figma? (maybe i'm blind)

@tishoyanchev tishoyanchev merged commit 48ab903 into Infineon:master May 2, 2023
@github-actions
Copy link
Contributor

github-actions bot commented May 9, 2023

🚀 PR was released in v18.0.9 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants