Spacing seems to have no effect on button group
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 68/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- powershell
- Domain
- frontend
Research direction
Start at the New-UDActionGroup implementation and trace how its -Spacing parameter is applied to the button group. Reproduce the sample with several spacing values, then verify that changing the value changes button placement within the group stack.
Written by the indexing model from the issue text.
Description
In New-UDActionGroup the -Spacing` parameter seems to have no affect on the buttons within the group.
Sample:
$Spacing = 100
New-UDActionGroup -Direction $direction -Spacing $Spacing -Style @{ padding = '12px' } -Button @(
New-UDButton -Text '+ Follow' -Style @{ borderRadius = '999px'; border = '2px solid #1976d2'; color = '#1976d2'; padding = '5px 18px'; background = 'transparent'; fontWeight = '600' } -OnClick { Show-UDToast -Message 'Following!' -MessageColor '#1976d2' }
New-UDButton -Text '★ Favorite' -Style @{ borderRadius = '999px'; border = '2px solid #ff9800'; color = '#ff9800'; padding = '5px 18px'; background = 'transparent'; fontWeight = '600' } -OnClick { Show-UDToast -Message 'Added to favourites' -MessageColor '#ff9800' }
New-UDButton -Text '⚑ Flag' -Style @{ borderRadius = '999px'; border = '2px solid #9c27b0'; color = '#9c27b0'; padding = '5px 18px'; background = 'transparent'; fontWeight = '600' } -OnClick { Show-UDToast -Message 'Flagged' -MessageColor '#9c27b0' }
)
changing the value of $spacing should affect button placement in the group stack by its value
- Dominant language
- PowerShell
- Stars
- 14
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Community-VyProjects/VyManager#908 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
AstrBotDevs/AstrBot#10340 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
keyxmakerx/Chronicle#967 ·
Maintainers usually reply within 1 day