Skip to content

Fix HeadingH1/2/3/4 by adding android:textStyle bold#34355

Merged
simoarpe merged 1 commit intomasterfrom
simone/fix-headings
Mar 2, 2026
Merged

Fix HeadingH1/2/3/4 by adding android:textStyle bold#34355
simoarpe merged 1 commit intomasterfrom
simone/fix-headings

Conversation

@simoarpe
Copy link
Collaborator

@simoarpe simoarpe commented Mar 2, 2026

Resolves brave/brave-browser#53113

This PR adds <item name="android:textStyle">bold</item> to the following styles:

  • HeadingH1
  • HeadingH2
  • HeadingH3
  • HeadingH4

Note: Setting textStyle to bold automatically set font weight to 700 so there's no need to include the fontWeight attribute as it gets overridden.

Once implemented, Brave styles will be picked directly from Nala.

Preview

Screenshot 2026-03-02 at 3 10 25 PM

@simoarpe simoarpe self-assigned this Mar 2, 2026
@simoarpe simoarpe added CI/skip-ios Do not run CI builds for iOS CI/skip-windows-x64 Do not run CI builds for Windows x64 CI/skip-macos-arm64 Do not run CI builds for macOS arm64 labels Mar 2, 2026
Copy link
Collaborator

@aguscruiz aguscruiz left a comment

Choose a reason for hiding this comment

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

Looks perfect! Thanks Simone!

Copy link
Member

@SergeyZhukovsky SergeyZhukovsky left a comment

Choose a reason for hiding this comment

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

++

@simoarpe simoarpe merged commit 32a3402 into master Mar 2, 2026
23 checks passed
@simoarpe simoarpe deleted the simone/fix-headings branch March 2, 2026 15:49
@github-actions github-actions bot added this to the 1.89.x - Nightly milestone Mar 2, 2026
@brave-builds
Copy link
Collaborator

Released in v1.89.92

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

Labels

CI/skip-ios Do not run CI builds for iOS CI/skip-macos-arm64 Do not run CI builds for macOS arm64 CI/skip-windows-x64 Do not run CI builds for Windows x64

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Set H1, H2 ,H3 and H4 as bold in Android

4 participants