Skip to content

Commit

Permalink
feat: update migration guide
Browse files Browse the repository at this point in the history
  • Loading branch information
Ventzy committed Aug 21, 2024
1 parent 396515e commit c852d07
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions components/o-header/MIGRATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Migrating from v13 to v14

### Search bar

`o-header v14` includes important markup changes to the search bar. Please review the changelog carefully:

1. **Search Input Field Updates**:
Expand Down Expand Up @@ -87,6 +89,15 @@
+ />
```

### Ask FT button

`o-header v14` adds optional Ask FT button markup in the following places:
- top left menu of the header (o-header/src/tsx/drawer.tsx)
- top left menu of the sticky (o-header/src/tsx/sticky.tsx)
- as the top, under the search in the drawer menu (o-header/src/tsx/drawer.tsx)

Update your markup according to the [Storybook demo](https://o2-core.origami.ft.com/?path=/story/components-o-header--header-primary&globals=backgrounds:!undefined) or [use o-header's tsx template](https://github.com/Financial-Times/origami/tree/main/components/o-header/src/tsx) with `showAskButton=true` if you need to include Ask FT button.

## Migrating from v12 to v13

o-header v13 includes markup changes to the drawer. This updates the edition switcher; moves the close button to align with where the hamburger icon would be when closed; and updates the search bar both in the drawer and on desktop. To migrate:
Expand Down

0 comments on commit c852d07

Please sign in to comment.