Skip to content
This repository has been archived by the owner on Apr 12, 2023. It is now read-only.

Add padding to button #883

Merged
merged 2 commits into from
Feb 22, 2022
Merged

Conversation

keiji
Copy link
Collaborator

@keiji keiji commented Feb 21, 2022

Issue 番号 / Issue ID

@tacitusxo からもらったPull Request #854 をdevelopに入れる。

この変更はすでにclosed beta03に入っていて問題は起きておらず、課題の解決にも役立つことが分かっている。

目的 / Purpose

  • フォントサイズを変更するとボタンのデザインが崩れる課題の解決

破壊的変更をもたらしますか / Does this introduce a breaking change?

[ ] Yes
[x] No

Pull Request の種類 / Pull Request type

[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ ] Other... Please describe:

検証方法 / How to test

コードの入手 / Get the code

git clone [repo-address]
cd [repo-name]
git checkout [branch-name]
dotnet restore

コードの検証 / Test the code


確認事項 / What to check

その他 / Other information

現在使用されている共通のボタンスタイル「DefaultButton」はPaddingの値が0であるためシステムのフォントサイズが大きくなるとスタイルの崩れを起こしています。
そのためPaddingを追加しました。
valueが「11」である根拠はそれ以上の値にすると、フォントサイズがデフォルト状態のボタンの大きさにも影響してくるためです。
「DefaultButton」のpaddingの値を10に変更
@keiji keiji self-assigned this Feb 21, 2022
@keiji keiji marked this pull request as ready for review February 21, 2022 04:54
@kazuhiro4949 kazuhiro4949 merged commit c2c5df1 into cocoa-mhlw:develop Feb 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[a11y][Android] フォントサイズを変更するとボタンのデザインが崩れる
3 participants