actualbudget/actual

[Tech Enhancement] Implement standard sizes on `Button` component

開放

#3,770 建立於 2024年11月3日

 (1 則留言) (0 個反應) (0 位負責人)JavaScript (603 個分叉)batch import
help wanteduser interface

倉庫指標

星標
 (7,129 顆星)
PR 合併指標
 (平均合併 4天 15小時) (30 天內合併 165 個 PR)

描述

Verified issue does not already exist?

  • I have searched and found no existing issue
  • I will be providing steps how to reproduce the bug (in most cases this will also mean uploading a demo budget file)

What happened?

Currently, there is no standard button sizes across the app. This enhancement is to extend the Button2 component to have a size prop which accepts some standard size values:

  • small
  • medium
  • large
  • extra-large

These standard sizes should vary between screen sizes e.g. different set of width and height for desktop, tablet, mobile

This change should help make all the buttons more uniform in sizes throughout the app

Where are you hosting Actual?

None

What browsers are you seeing the problem on?

No response

Operating System

None

貢獻者指南