-
-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(block-title): tweak styles to match material 3
- Loading branch information
1 parent
48c05d9
commit 63b6b7a
Showing
4 changed files
with
34 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
export const BlockTitleClasses = (props) => { | ||
export const BlockTitleClasses = (props, colors) => { | ||
const { withBlock } = props; | ||
return { | ||
base: { | ||
common: `pl-4-safe pr-4-safe mt-8 flex justify-between items-center ${ | ||
withBlock ? '-mb-6' : 'mb-2' | ||
}`, | ||
ios: `font-semibold`, | ||
material: `text-sm font-medium text-primary`, | ||
ios: `font-semibold ${colors.textIos}`, | ||
material: `text-sm font-medium ${colors.textMaterial}`, | ||
}, | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters