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

TextField - new outline preset #3066

Merged
merged 10 commits into from May 19, 2024
Merged

Conversation

Inbal-Tish
Copy link
Collaborator

@Inbal-Tish Inbal-Tish commented May 12, 2024

Description

TextField - new outline preset

based on: #3065

Changelog

TextField - new outline preset

Additional info

ticket 4172

@Inbal-Tish Inbal-Tish changed the base branch from master to feat/TextField_underline_preset May 12, 2024 08:03
@Inbal-Tish Inbal-Tish requested a review from ethanshar May 12, 2024 08:48
@Inbal-Tish Inbal-Tish added this to the Form milestone May 12, 2024
Base automatically changed from feat/TextField_underline_preset to master May 12, 2024 09:45
…nto feat/TextField_outline_preset

# Conflicts:
#	demo/src/screens/componentScreens/TextFieldScreen.tsx
#	src/components/textField/types.ts
#	src/components/textField/usePreset.ts
@Inbal-Tish Inbal-Tish added Important for Next Release PR that must be included in the release version and removed Important for Next Release PR that must be included in the release version labels May 13, 2024
Copy link
Collaborator

@ethanshar ethanshar 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
Approved, see my comment on the example screen, it will help testing the component better

@@ -74,6 +80,7 @@ export default class TextFieldScreen extends Component {
/>
<TextField
placeholder="Placeholder"
placeholderTextColor={Colors.$textNeutralLight}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why are you setting a different placeholderColor here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I was just testing new token. Removed

this.setState({preset: index === 0 ? 'underline' : 'outline'});
};

getDynamicFieldStyle = (context, props) => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

This behavior can be achieved by passing a color object with all states, any reason you are doing it like this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We don't have a prop to control the underline color with the ColorType... What are you referring to?

@Inbal-Tish
Copy link
Collaborator Author

@ethanshar I added another change to the demo's configuration file to allow overriding

@Inbal-Tish Inbal-Tish merged commit 2373454 into master May 19, 2024
1 check passed
@Inbal-Tish Inbal-Tish deleted the feat/TextField_outline_preset branch May 19, 2024 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants