Skip to content

Conversation

EmmanuelBuraimo
Copy link
Contributor

@EmmanuelBuraimo EmmanuelBuraimo commented Jul 7, 2025

This pull request introduces updates to border radius tokens across multiple platforms and upgrades a dependency in the package.json file. The most notable changes include the addition of new border radius tokens (BORDER_RADIUS_FULL and BORDER_RADIUS_NAV_TABS) and a version bump for the lerna package.

Token Updates Across Platforms:

  • Android (packages/bpk-foundations-android/tokens/base.raw.android.json): Added BORDER_RADIUS_FULL (value: 9999) and BORDER_RADIUS_NAV_TABS (value: 18).
  • iOS (packages/bpk-foundations-ios/tokens/base.raw.ios.json): Added BORDER_RADIUS_FULL (value: 9999) and BORDER_RADIUS_NAV_TABS (value: 18).
  • Web (packages/bpk-foundations-web/tokens/base.raw.json): Added BORDER_RADIUS_FULL (value: "100%") and BORDER_RADIUS_NAV_TABS (value: "1.125rem").
  • Common (packages/bpk-foundations-common/app/borders.json): Added BORDER_RADIUS_FULL (value: 9999) and BORDER_RADIUS_NAV_TABS (value: 18).

Dependency Update:

Thanks for contributing to Backpack 🙏
Please include a description of the changes you are introducing and some screenshots if appropriate.
-->

The typography additions will be done once this is confirmed fine

emmanuelburaimo added 4 commits June 27, 2025 16:28
# Conflicts:
#	packages/bpk-foundations-android/tokens/base.raw.android.json
#	packages/bpk-foundations-common/base/colors/base.json
#	packages/bpk-foundations-ios/tokens/base.ios.json
#	packages/bpk-foundations-ios/tokens/base.raw.ios.json
#	packages/bpk-foundations-web/tokens/base.common.js
#	packages/bpk-foundations-web/tokens/base.default.scss
#	packages/bpk-foundations-web/tokens/base.es6.d.ts
#	packages/bpk-foundations-web/tokens/base.es6.js
#	packages/bpk-foundations-web/tokens/base.raw.json
#	packages/bpk-foundations-web/tokens/base.scss
},
"BORDER_RADIUS_FULL": {
"value": "{!BORDER_RADIUS_FULL}",
"category": "borders"
Copy link
Contributor

Choose a reason for hiding this comment

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

should this category be radii? same as BORDER_RADIUS_XXX

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch this has been updated 👍

"value": "{!FONT_SIZE_XS}",
"type": "font-size",
"category": "font-sizes",
"deprecated": true
Copy link
Contributor

@GCpigsic GCpigsic Jul 8, 2025

Choose a reason for hiding this comment

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

Could I ask why do we add new tokens to packages/bpk-foundations-common/app/legacy-typography.json rather than packages/bpk-foundations-common/app/typography.json. Seems we are adding new tokens with "deprecated": true. Is it intentional?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes actually this is also valid as well. They have been moved to typography.json, legacy will only hold deprecated ones now

@novinfard
Copy link

Can you add a link to the Figma design, and Jira ticket please @EmmanuelBuraimo ?

@EmmanuelBuraimo EmmanuelBuraimo requested a review from GCpigsic July 8, 2025 08:56
@@ -28,15 +28,23 @@
},
"BORDER_SIZE_SM": {
"value": "{!BORDER_SIZE_SM}",
"category": "borders"
"category": "radii"
Copy link
Contributor

@GCpigsic GCpigsic Jul 8, 2025

Choose a reason for hiding this comment

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

I think the category of BORDER_SIZE_SM and BORDER_SIZE_LG should be borders while BORDER_RADIUS_FULL and BORDER_RADIUS_NAV_TABS should be radii, which is same as other platform 😄 https://github.com/Skyscanner/backpack-foundations/pull/461/files#diff-c9797f67a52b1ecfbb3f5b6c200e0d05e133fa6c90ea8a14cff56338104c6278

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have updated this :)

@tykayoshi
Copy link
Contributor

This PR is breaking backpack-ios. There will need to be a fix in iOS to accept this change. Most likely in fonts.js script and backpack itself

@tykayoshi tykayoshi self-requested a review July 8, 2025 13:23
Copy link
Contributor

@tykayoshi tykayoshi left a comment

Choose a reason for hiding this comment

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

on iOS need to update backpack to handle this change. @darioroa had this same issue earlier

"FONT_FAMILY_LARKEN": {
"value": "{!FONT_FAMILY_LARKEN}",
"type": "font",
"category": "typesettings"
Copy link
Contributor

Choose a reason for hiding this comment

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

Where have these font changes come from?

@tykayoshi
Copy link
Contributor

This can be approved and released as we have to manually update foundations anyway on the app side. This WILL break backpack-ios which we are aware of. I have created to do the required work before we merge it into iOS: https://skyscanner.atlassian.net/browse/DON-1827

@EmmanuelBuraimo EmmanuelBuraimo merged commit f1e9bfd into main Jul 9, 2025
4 checks passed
@EmmanuelBuraimo EmmanuelBuraimo deleted the DON-119-Tabs-New-Token branch July 9, 2025 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
major major
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants