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

fix: add padding-block and padding-inline properties #399

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

QuintonJason
Copy link
Contributor

@QuintonJason QuintonJason commented Mar 12, 2025

Description

This issue is to remedy a request that came into DS-Support

  • added padding-block and padding-inline to allow for more padding flexibility
  • added align-self for alignment flexibility within flex containers

Fixes DSS-1309

Type of change

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Please describe the tests you've added and run to verify your changes.
Provide instructions so that we can reproduce.
Please also list any relevant details for your test configuration.

  • unit tests
  • e2e tests
  • accessibility tests
  • tested manually
  • other:

Test Configuration:

  • Pine versions:
  • OS:
  • Browsers:
  • Screen readers:
  • Misc:

Checklist:

If not applicable, leave options unchecked.

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing tests pass locally with my changes
  • Design has QA'ed and approved this PR

@QuintonJason QuintonJason self-assigned this Mar 12, 2025
@QuintonJason QuintonJason requested a review from a team March 12, 2025 18:37
@QuintonJason QuintonJason marked this pull request as ready for review March 12, 2025 18:37
@github-actions github-actions bot added bug Something isn't working package: core Changes have been made to the Core package labels Mar 12, 2025
Copy link

netlify bot commented Mar 12, 2025

Deploy Preview for pine-design-system ready!

Name Link
🔨 Latest commit 9e7b69c
🔍 Latest deploy log https://app.netlify.com/sites/pine-design-system/deploys/67e43a0e081a820008536822
😎 Deploy Preview https://deploy-preview-399--pine-design-system.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@QuintonJason QuintonJason changed the title fix: add padding block and inline properties fix: add padding-block and padding-inline properties Mar 12, 2025
@QuintonJason QuintonJason requested a review from a team March 12, 2025 21:30
* Defines the vertical alignment of the box items.
* @defaultValue start
*/
@Prop() alignSelf?: `start` | `center` | `end` | `baseline` | `stretch`;
Copy link
Collaborator

@ju-Skinner ju-Skinner Mar 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see the property defined, the styles in the scss, but I don't see any use of the property in this file. I would have expected to see this between lines 179 and 180

This could just be me, but could we name this verticalAlignment?

const element = page.root;
expect(element).toHaveClass(`pds-padding-inline-${size}`);
});

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are no specs for alignSelf as well.

Copy link
Collaborator

@ju-Skinner ju-Skinner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Requesting changes because the prop alignSelf is not being used within the component.

@QuintonJason QuintonJason force-pushed the fix/box-padding-block-inline branch from bbe39d3 to 7d2cb47 Compare March 26, 2025 14:36
@QuintonJason QuintonJason requested review from a team, ju-Skinner and pixelflips March 26, 2025 14:50
@QuintonJason QuintonJason requested review from ju-Skinner and a team March 26, 2025 16:16
@ju-Skinner ju-Skinner requested a review from anechol March 26, 2025 16:31
@@ -283,7 +283,79 @@ $pine-spacing-tokens: (
padding: var(--pine-dimension-2xl);
}

.pds-padding-block-none {
padding-block: 0;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick but could this use --pine-dimension-none?

Copy link
Member

@pixelflips pixelflips left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some nitpicks, but overall LGTM! 👍🏼

}

.pds-padding-inline-none {
padding-inline: 0;
Copy link
Member

@pixelflips pixelflips Mar 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same --pine-dimension-none here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working package: core Changes have been made to the Core package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants