Skip to content

fix(Section): add xstyle prop and comprehensive tests - #721

Merged
cixzhang merged 1 commit into
mainfrom
navi/fix/section-hardening
Mar 19, 2026
Merged

cixzhang merged 1 commit into
mainfrom
navi/fix/section-hardening

Conversation

@cixzhang

@cixzhang cixzhang commented Mar 19, 2026 •

Copy link
Copy Markdown
Contributor

Changes

Addresses findings from hardening sprint #719:

  • P1: Missing XDSBaseProps (no xstyle) — Added xstyle, className, and style props to the Section component
  • P2: Zero tests — Added comprehensive test suite covering all variants, dividers, padding, sizing, and ref forwarding

Not addressed (design decisions needed):

  • P1: Heading level not configurable — requires design review
  • P1: Border width 1px hardcoded — no border-width token exists in the system; 1px is the standard

Test plan

  • New test suite with 18 tests covers all props and variants
  • All tests pass
  • Lint passes (0 errors)

- Add xstyle, className, style props for style customization
- Add comprehensive test suite (was zero tests)
- Resolves P1 (missing XDSBaseProps/xstyle) and P2 (zero tests) from hardening issue #719

Co-authored-by: Navi <[email protected]>
@cixzhang cixzhang added the hardening Component hardening and quality sweep label Mar 19, 2026
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Mar 19, 2026
@cixzhang
cixzhang merged commit 1a49f91 into main Mar 19, 2026
10 of 11 checks passed
@cixzhang
cixzhang deleted the navi/fix/section-hardening branch March 19, 2026 21:35
josephfarina added a commit that referenced this pull request Mar 20, 2026
Badge: add label prop (new in #709) to English, Chinese, and dense docs.
Section: add xstyle and padding props (xstyle new in #721) to all translations.
SideNavItem: add collapsible prop (new in #680) with controlled/uncontrolled
mode documentation. Updated nested items example to show collapsible usage.

Found during Night Watch doc review.

Co-authored-by: Navi <[email protected]>
cixzhang added a commit that referenced this pull request Apr 26, 2026
- Add xstyle, className, style props for style customization
- Add comprehensive test suite (was zero tests)
- Resolves P1 (missing XDSBaseProps/xstyle) and P2 (zero tests) from hardening issue #719

Co-authored-by: Navi <[email protected]>
cixzhang added a commit that referenced this pull request Jun 21, 2026
- Add xstyle, className, style props for style customization
- Add comprehensive test suite (was zero tests)
- Resolves P1 (missing XDSBaseProps/xstyle) and P2 (zero tests) from hardening issue #719

Co-authored-by: Navi <[email protected]>
cixzhang added a commit that referenced this pull request Jun 21, 2026
- Add xstyle, className, style props for style customization
- Add comprehensive test suite (was zero tests)
- Resolves P1 (missing XDSBaseProps/xstyle) and P2 (zero tests) from hardening issue #719
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot. hardening Component hardening and quality sweep

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant