Repository navigation
設定モーダルのカッコ内テキストを親と同じ色にしタブレットで小さく表示する - #5954
Merged
Merged
Conversation
Contributor
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 Walkthrough概要SelectBoundSettingListModal コンポーネントの renderWithSmallParens ヘルパー関数を拡張して、括弧で囲まれたテキストセグメントに色を適用できるようにし、列車タイプとテーマラベルで計算された色を使用するよう更新しました。 変更内容色付き括弧レンダリングの統合
関連する PR
推奨ラベル
推定レビュー工数🎯 2 (Simple) | ⏱️ ~12 分 兎からのお祝い詩
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
設定モーダルの列車種別パネル(およびテーマパネル)でカッコ内テキストを描画する際、ネストした
Typographyが親の色を継承せずデフォルト色#333で描画されてしまい、色付きパネル上で本文と異なる黒文字になっていました。あわせてタブレットでサイズ差が視認しにくかったため、タブレット時のフォントサイズも縮小します。変更の種類
変更内容
src/components/SelectBoundSettingListModal.tsxのrenderWithSmallParensにcolor引数を追加し、内側のTypographyにインラインで色を渡すよう変更。Typographyがbaseでcolor: '#333'を当て直す仕様のため、親色を明示的に再指定しないとカッコ部分のみ黒文字になる問題を解消。trainTypeTextColor/themeTextColorを渡すよう更新。trainTypeNameParensのfontSizeをRFValue(9)からisTablet ? RFValue(7) : RFValue(9)に変更。タブレットで本文RFValue(12)≒24pt に対しカッコが18ptで差が分かりにくかったため、タブレット側のベースを下げて約14ptに(≒58%比率)。スマホ側は従来通り。テスト
npm run lintが通ることnpm testが通ることnpm run typecheckが通ること関連Issue
スクリーンショット(任意)
Generated by Claude Code
Summary by CodeRabbit
リリースノート