Closed kalashshah closed 4 days ago
In the getButtonVariantStyles
function, the import for ThemeMode
and ButtonVariant
seems to be incorrect. It should be imported from a file named Button.types
, but it is currently imported from ./Button.types
.
In the getButtonVariantStyles
function, there is a typo in the import for ThemeMode
from 'blocks/Blocks.types'
. It should be 'blocks/types'
instead of 'blocks/Blocks.types'
.
In the getButtonSizeStyles
function, the property leading-trim
and text-edge
are not valid CSS properties. They might be custom properties specific to the stylesheet used, but they should be verified.
The getButtonSizeStyles
function seems to be handling the size
prop correctly, but it's advisable to check if all the CSS values and calculations align with the design requirements.
Overall, the code structure and logic seem to be correct. Double-check the imports, typos, and custom CSS properties for accuracy.
Therefore, the final review comment would be: 'All looks good.'
PR Preview Action v1.4.7 :---: Preview removed because the pull request was closed. 2024-07-11 12:39 UTC
All looks good.
Pull Request Template
Ticket Number
Description
Currently icons inside buttons component depend upon props passed from outside to handle the icon sizing resulting in an irregularity throughout the Dapp.
Problem/Feature:
Type of Change
Checklist
Frontend Guidelines
Build & Testing
Screenshots/Video with Explanation
Before: Icons take default size when passed, causing breaking styling.
After: Icon sizes depend upon the
size
prop passed and take sizes accordingly.Additional Context
Review & Approvals
Notes