Skip to content

Commit

Permalink
fix: [DX-1036] Fix CompactStepBar dark style (#525)
Browse files Browse the repository at this point in the history
  • Loading branch information
witwash authored Jan 23, 2024
1 parent c3246f7 commit 7eca352
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions optimus/lib/src/step_bar/step_bar_compact.dart
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ class _CollapsedCompactStepBar extends StatelessWidget {
height: _itemHeight,
constraints: const BoxConstraints(minHeight: _itemHeight),
decoration: BoxDecoration(
color: OptimusTheme.of(context).colors.neutral0,
color: context.tokens.borderStaticInverse,
boxShadow: _getShadow(context.tokens),
borderRadius:
BorderRadius.circular(context.tokens.borderRadius50),
Expand Down Expand Up @@ -429,7 +429,7 @@ class _AnimatedStepBarState extends State<_AnimatedStepBar> {
child: Container(
width: widget.width,
decoration: BoxDecoration(
color: OptimusTheme.of(context).colors.neutral0,
color: tokens.backgroundStaticFlat,
boxShadow: context.tokens.shadow100,
borderRadius:
BorderRadius.circular(context.tokens.borderRadius50),
Expand Down
5 changes: 1 addition & 4 deletions optimus/lib/src/step_bar/step_bar_item.dart
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ class StepBarItem extends StatelessWidget {

@override
Widget build(BuildContext context) {
final theme = OptimusTheme.of(context);
final tokens = context.tokens;
final description = item.description;

Expand Down Expand Up @@ -91,10 +90,8 @@ class StepBarItem extends StatelessWidget {
OptimusTypography(
resolveStyle: (_) => preset200s.copyWith(
overflow: TextOverflow.ellipsis,
color: theme.isDark
? theme.colors.neutral0t64
: theme.colors.neutral1000t64,
),
color: OptimusTypographyColor.secondary,
maxLines: 1,
child: description,
),
Expand Down

0 comments on commit 7eca352

Please sign in to comment.