Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG Directional Padding Overwrites Previous Values to 'auto' #8

Open
Tracked by #12
Seesti opened this issue Jan 29, 2024 · 0 comments
Open
Tracked by #12

BUG Directional Padding Overwrites Previous Values to 'auto' #8

Seesti opened this issue Jan 29, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@Seesti
Copy link
Contributor

Seesti commented Jan 29, 2024

When setting more than one directional padding (e.g. setTopPadding(), setRightPadding()) on a single element, the second padding call overwrites the other previously set padding values to 'auto'. This behavior is unexpected and leads to inconsistent styling on the element.

Steps to Reproduce:

Set a directional padding on an element, for example: element.setTopPadding(10).
Set another directional padding on the same element, for example: element.setRightPadding(15).
Observe the padding values of the element.
Expected Behavior:

Each directional padding call should only affect its respective side without altering the previously set padding values on other sides.

Actual Behavior:

After the second directional padding call, the previously set padding values on other sides are overridden and set to 'auto'.

Additional notes:
if on one element a setPadding() is called after a directional padding setter, and after another directional setter is called, the second setter is able to receive the values set by setPadding() without turning them to "auto"

@thejhh thejhh self-assigned this Feb 2, 2024
thejhh pushed a commit that referenced this issue Feb 2, 2024
@thejhh thejhh mentioned this issue Apr 6, 2024
5 tasks
@thejhh thejhh added the bug Something isn't working label Apr 6, 2024
@thejhh thejhh changed the title Directional Padding Overwrites Previous Values to 'auto' BUG Directional Padding Overwrites Previous Values to 'auto' Apr 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants