Skip to content

Commit

Permalink
PAN-3144: BpkPrice component support style modification(part 2) (#2025)
Browse files Browse the repository at this point in the history
* add BpkPriceRight

* delete BpkPriceRight

* Updated snapshots

---------

Co-authored-by: jacobhuang <[email protected]>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Jun 27, 2024
1 parent 909f700 commit 3577b31
Show file tree
Hide file tree
Showing 12 changed files with 9 additions and 9 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -45,24 +45,24 @@ internal fun BpkPriceAlignEnd(
horizontalAlignment = Alignment.End,
) {
Row {
previousPrice?.let {
BpkText(
text = it,
color = BpkTheme.colors.textError,
style = size.secondaryTextStyle(),
textDecoration = TextDecoration.LineThrough,
)
}
leadingText?.let {
val builder = StringBuilder()
builder.append(it)
previousPrice?.let { builder.append("") }
builder.append(it)
BpkText(
text = builder.toString(),
color = BpkTheme.colors.textSecondary,
style = size.secondaryTextStyle(),
)
}
previousPrice?.let {
BpkText(
text = it,
color = BpkTheme.colors.textError,
style = size.secondaryTextStyle(),
textDecoration = TextDecoration.LineThrough,
)
}
}
BpkText(
text = price,
Expand Down
Binary file modified docs/compose/Price/screenshots/default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/compose/Price/screenshots/default_dm.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3577b31

Please sign in to comment.