Skip to content

feat(segment, segment-button): update segment value property to accept numbers - #27222

Merged
averyrousseau merged 4 commits into
ionic-team:feature-7.1from
Morritz:feat/update-segment-value-property-to-accept-numbers
May 24, 2023
Merged

averyrousseau merged 4 commits into
ionic-team:feature-7.1from
Morritz:feat/update-segment-value-property-to-accept-numbers

Conversation

@Morritz

@Morritz Morritz commented Apr 17, 2023 •

Copy link
Copy Markdown
Contributor

Issue number: resolves #27221


What is the current behavior?

The value property of the segment component in Ionic Framework currently only accepts string values.

What is the new behavior?

This pull request updates the "value" property of the segment component to accept a union of string and number types. This allows for more versatile data input in the segment component, particularly for users who work with numerical data.

Does this introduce a breaking change?

  • Yes
  • No

Other information

N/A

@Morritz
Morritz requested a review from a team as a code owner April 17, 2023 21:44
@bolt-new-by-stackblitz

Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@github-actions github-actions Bot added the package: core @ionic/core package label Apr 17, 2023
@JakubCzura

Copy link
Copy Markdown

So interesting feature. It will be good if they merge it.

@liamdebeasi

Copy link
Copy Markdown
Contributor

Thanks for the request and PR! I think this would be a good feature to add to Ionic. The next step for us is to create a design document of how the feature will work/be implemented. This design process allows us to a) discuss the feature so there is consensus and b) ensure that the API is well designed.

I have created the design document internally, and the team will be looking at it soon. If the design document gets approved, then someone will review your PR and potentially request changes. Let me know if you have questions.

@liamdebeasi
liamdebeasi changed the base branch from main to feature-7.1 April 24, 2023 18:53
@liamdebeasi
liamdebeasi changed the base branch from feature-7.1 to main April 24, 2023 18:53

@liamdebeasi liamdebeasi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The team has completed our design document, so we are looking to move forward with this PR. I left a requested change below.

One other thing is since this is a feature, we'll need to merge into the feature-7.1 branch instead of main. Let me know if you have any questions!

@liamdebeasi liamdebeasi changed the title feat(segment, segment-button): Update segment value property to accept numbers feat(segment, segment-button): update segment value property to accept numbers Apr 24, 2023
@Morritz
Morritz requested a review from sean-perkins as a code owner April 24, 2023 20:29
@github-actions github-actions Bot added package: angular @ionic/angular package package: react @ionic/react package package: vue @ionic/vue package labels Apr 24, 2023

@averyrousseau averyrousseau left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, this just needs to be merged into the feature-7.1 branch instead of main as previously mentioned 👀

@sean-perkins
sean-perkins changed the base branch from main to feature-7.1 May 3, 2023 17:25
@sean-perkins

Copy link
Copy Markdown
Contributor

Ok - updated the target branch to feature-7.1. and also synced that branch with main. It would probably be a good idea to rebase your branch. I can help with this, if there is any issues.

@sean-perkins
sean-perkins force-pushed the feat/update-segment-value-property-to-accept-numbers branch from eed9015 to eafc408 Compare May 24, 2023 02:00
@sean-perkins

Copy link
Copy Markdown
Contributor

Rebased the branch against feature-7.1, this is ready for new reviews.

@liamdebeasi liamdebeasi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thank you!

@averyrousseau
averyrousseau merged commit ec95ae5 into ionic-team:feature-7.1 May 24, 2023
@averyrousseau

Copy link
Copy Markdown
Contributor

Merged, thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: angular @ionic/angular package package: core @ionic/core package package: react @ionic/react package package: vue @ionic/vue package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Update Segment component "value" property to accept numbers

5 participants