Skip to content

Commit

Permalink
Fix dynamic header font breaking layout (#772)
Browse files Browse the repository at this point in the history
  • Loading branch information
aeharding authored Oct 13, 2023
1 parent c3e7919 commit b55ed4e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/GlobalStyles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,6 @@ export default function GlobalStyles({ children }: GlobalStylesProps) {
styles={css`
html {
${baseFontStyles}
ion-content ion-item {
font-size: 1rem;
}
}
${baseVariables}
Expand Down
9 changes: 9 additions & 0 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,15 @@ ion-tab-button {
opacity: 1 !important;
}

/*
* Header doesn't support dynamic font size
*/
ion-router-outlet > .ion-page > ion-header ion-button,
ion-router-outlet > .ion-page > ion-header ion-back-button,
ion-router-outlet > .ion-page > ion-header ion-title {
font-size: 17px;
}

.left-align-buttons
.action-sheet-button:not(.action-sheet-cancel)
.action-sheet-button-inner.sc-ion-action-sheet-ios:not(
Expand Down

0 comments on commit b55ed4e

Please sign in to comment.