Skip to content

refactor(searchbar): remove boolean values from showCancelButton#18953

Merged
brandyscarney merged 7 commits into
nextfrom
remove-searchbar-booleans
Sep 30, 2019
Merged

refactor(searchbar): remove boolean values from showCancelButton#18953
brandyscarney merged 7 commits into
nextfrom
remove-searchbar-booleans

Conversation

@brandyscarney

@brandyscarney brandyscarney commented Jul 30, 2019

Copy link
Copy Markdown
Member

Pull request checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)
  • Build (npm run build) was run locally and any changes were pushed
  • Lint (npm run lint) has passed locally and any fixes were made for failures

Pull request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

What is the current behavior?

Old Code:

<ion-searchbar show-cancel-button>
<ion-searchbar show-cancel-button="true">
<ion-searchbar show-cancel-button="false">

What is the new behavior?

New Code:

<ion-searchbar show-cancel-button="focus">
<ion-searchbar show-cancel-button="focus">
<ion-searchbar show-cancel-button="never">

Does this introduce a breaking change?

  • Yes
  • No

Update the following values for show-cancel-button/showCancelButton:

Old value New value
true "focus"
"focus"
false "never"

Other information

@ionitron-bot ionitron-bot Bot added the package: core @ionic/core package label Jul 30, 2019
@brandyscarney brandyscarney changed the base branch from master to next July 30, 2019 18:46
Comment thread core/src/components/searchbar/searchbar.tsx Outdated
@brandyscarney brandyscarney force-pushed the next branch 2 times, most recently from bc99f4e to 76f1747 Compare September 27, 2019 19:52
@brandyscarney brandyscarney merged commit 508e186 into next Sep 30, 2019
@brandyscarney brandyscarney deleted the remove-searchbar-booleans branch September 30, 2019 15:17
brandyscarney added a commit that referenced this pull request Oct 7, 2019
)

BREAKING CHANGES

The `show-cancel-button` property of the searchbar no longer accepts boolean values. Accepted values are strings: `"focus"`, `"always"`, `"never"`. The following should change:

```
<ion-searchbar show-cancel-button>
<ion-searchbar show-cancel-button="true">
<ion-searchbar show-cancel-button="false">
```

becomes

```
<ion-searchbar show-cancel-button="focus">
<ion-searchbar show-cancel-button="focus">
<ion-searchbar show-cancel-button="never">
```
brandyscarney added a commit that referenced this pull request Oct 8, 2019
)

BREAKING CHANGES

The `show-cancel-button` property of the searchbar no longer accepts boolean values. Accepted values are strings: `"focus"`, `"always"`, `"never"`. The following should change:

```
<ion-searchbar show-cancel-button>
<ion-searchbar show-cancel-button="true">
<ion-searchbar show-cancel-button="false">
```

becomes

```
<ion-searchbar show-cancel-button="focus">
<ion-searchbar show-cancel-button="focus">
<ion-searchbar show-cancel-button="never">
```
brandyscarney added a commit that referenced this pull request Oct 9, 2019
)

BREAKING CHANGES

The `show-cancel-button` property of the searchbar no longer accepts boolean values. Accepted values are strings: `"focus"`, `"always"`, `"never"`. The following should change:

```
<ion-searchbar show-cancel-button>
<ion-searchbar show-cancel-button="true">
<ion-searchbar show-cancel-button="false">
```

becomes

```
<ion-searchbar show-cancel-button="focus">
<ion-searchbar show-cancel-button="focus">
<ion-searchbar show-cancel-button="never">
```
brandyscarney added a commit that referenced this pull request Oct 10, 2019
)

BREAKING CHANGES

The `show-cancel-button` property of the searchbar no longer accepts boolean values. Accepted values are strings: `"focus"`, `"always"`, `"never"`. The following should change:

```
<ion-searchbar show-cancel-button>
<ion-searchbar show-cancel-button="true">
<ion-searchbar show-cancel-button="false">
```

becomes

```
<ion-searchbar show-cancel-button="focus">
<ion-searchbar show-cancel-button="focus">
<ion-searchbar show-cancel-button="never">
```
elylucas pushed a commit that referenced this pull request Oct 30, 2019
)

BREAKING CHANGES

The `show-cancel-button` property of the searchbar no longer accepts boolean values. Accepted values are strings: `"focus"`, `"always"`, `"never"`. The following should change:

```
<ion-searchbar show-cancel-button>
<ion-searchbar show-cancel-button="true">
<ion-searchbar show-cancel-button="false">
```

becomes

```
<ion-searchbar show-cancel-button="focus">
<ion-searchbar show-cancel-button="focus">
<ion-searchbar show-cancel-button="never">
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: core @ionic/core package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants