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

feat: ability to align individual table column items [FC-1234] #2458

Open
wants to merge 16 commits into
base: master
Choose a base branch
from

Conversation

tewarig
Copy link
Contributor

@tewarig tewarig commented Jan 6, 2025

Description

this pr fixes #2319
This PR builds on the work done by @Sumitmaithani #2322
this pr adds ability to align individual table column to left or right.

Changes

added textAlign to tableHeader & tableCell

Additional Information

Component Checklist

  • Update Component Status Page
  • Perform Manual Testing in Other Browsers
  • Add KitchenSink Story
  • Add Interaction Tests (if applicable)
  • Add changeset

Copy link

changeset-bot bot commented Jan 6, 2025

🦋 Changeset detected

Latest commit: 9eeb2ae

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@razorpay/blade Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

github-actions bot commented Jan 6, 2025

✅ PR title follows Conventional Commits specification.

Copy link

codesandbox-ci bot commented Jan 6, 2025

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 9eeb2ae:

Sandbox Source
razorpay/blade: basic Configuration

@rzpcibot
Copy link
Collaborator

rzpcibot commented Jan 6, 2025

Bundle Size Report

Updated Components
Status Component Base Size (kb) Current Size (kb) Diff
Table, TableHeader, TableHeaderCell, TableHeaderRow, TableBody, TableCell, TableRow, TableFooter, TableFooterCell, TableFooterRow, TablePagination, TableToolbar, TableToolbarActions, TableEditableCell, TableEditableDropdownCell 70.245 70.346 +0.101 KB

Generated by 🚫 dangerJS against 9eeb2ae

@tewarig tewarig changed the title Feat/add header alignment Feat/add header alignment [FC-1234] Jan 6, 2025
@tewarig tewarig changed the title Feat/add header alignment [FC-1234] Feat: add header alignment [FC-1234] Jan 7, 2025
@tewarig tewarig changed the title Feat: add header alignment [FC-1234] feat: add header alignment [FC-1234] Jan 7, 2025
@tewarig tewarig marked this pull request as ready for review January 7, 2025 08:25
@tewarig tewarig changed the title feat: add header alignment [FC-1234] feat: ability to align individual table column items to left or right [FC-1234] Jan 7, 2025
@tewarig tewarig changed the title feat: ability to align individual table column items to left or right [FC-1234] feat: ability to align individual table column items [FC-1234] Jan 7, 2025
@@ -121,6 +124,14 @@ const StyledHeaderCell = styled(HeaderCell)<{
? makeSpace(getIn(theme, tableRow.paddingRight[$rowDensity]))
: undefined,
minHeight: makeSize(getIn(size, tableRow.minHeight[$rowDensity])),
'> .text': {
Copy link
Member

@anuraghazra anuraghazra Jan 15, 2025

Choose a reason for hiding this comment

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

We should not use random classNames it may clash with consumer styles.

Add this styles directly in the box.

<BaseBox flexGrow display justifyContent>...</BaseBox>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Table]: Few enhancements
4 participants