-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
fix(input): implement default shape for ionic theme #29469
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -44,38 +44,17 @@ configs({ modes: ['md'] }).forEach(({ title, screenshot, config }) => { | |||
const input = page.locator('ion-input'); | |||
await expect(input).toHaveScreenshot(screenshot(`input-fill-solid-label-floating`)); | |||
}); | |||
test('should not have visual regressions with shaped solid', async ({ page }) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed these tests and their snapshots because I moved them under the newly made shape
folder.
const input = page.locator('ion-input'); | ||
await expect(input).toHaveScreenshot(screenshot(`input-fill-shaped-solid`)); | ||
}); | ||
test('padding and border radius should be customizable', async ({ page }) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The border radius customization will be tested under the newly made shape
folder.
private getShape() { | ||
const theme = getIonTheme(this); | ||
const { shape } = this; | ||
if (theme === 'ios' && shape === 'round') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not possible to have a round shape for the ios theme since it doesn't support an outline. I decided to add a warning.
...ut/test/fill/input.e2e.ts-snapshots/input-fill-outline-custom-md-ltr-Mobile-Chrome-linux.png
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These will look like md
theme since the default style hasn't been implemented.
Co-authored-by: Brandy Carney <brandyscarney@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job! 👏
Issue number: internal
What is the current behavior?
Input doesn't provide a default shape.
What is the new behavior?
md
andionic
defaults toround
.ios
has yet to be determined, this will be done at a later time.Does this introduce a breaking change?
Other information
Preview