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

Merged
merged 18 commits into from
Jan 21, 2025

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.

before -
Screenshot 2025-01-21 at 1 33 33 PM

with - TableHeaderCell,TableCell,TableFooterCell with textAlgin= "right"
Screenshot 2025-01-21 at 1 34 06 PM

with TableHeaderCell,TableCell,TableFooterCell with textAlgin= "center"
Screenshot 2025-01-21 at 1 34 58 PM

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: 1bff88c

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 Minor

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 1bff88c:

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.283 70.390 +0.107 KB

Generated by 🚫 dangerJS against 1bff88c

@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>

@tewarig tewarig merged commit 964ee14 into master Jan 21, 2025
18 of 22 checks passed
@tewarig tewarig deleted the feat/add-header-alignment branch January 21, 2025 12:20
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