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: list: add listclassnames prop and unit tests #724

Conversation

dkilgore-eightfold
Copy link
Contributor

@dkilgore-eightfold dkilgore-eightfold commented Oct 10, 2023

SUMMARY:

  • Adds listClassNames prop to support custom <ol> or <ul> classes
  • Updates List stories
  • Adds unit tests

JIRA TASK (Eightfold Employees Only):

ENG-67383

CHANGE TYPE:

  • Bugfix Pull Request
  • Feature Pull Request

TEST COVERAGE:

  • Tests for this change already exist
  • I have added unittests for this change

TEST PLAN:

Pull the PR branch and run yarn and yarn storybook. Verify the List stories behave as expected. Use the PR Codesandbox to add a custom CSS class using the listClassNames prop.

@codesandbox-ci
Copy link

codesandbox-ci bot commented Oct 10, 2023

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 d8be642:

Sandbox Source
React Configuration
Vanilla Configuration

@codecov
Copy link

codecov bot commented Oct 10, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Files Coverage Δ
src/components/List/List.tsx 89.28% <ø> (+3.57%) ⬆️

📢 Thoughts on this report? Let us know!.

Copy link

@bwala-eightfold bwala-eightfold left a comment

Choose a reason for hiding this comment

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

Tested locally. Working as expected.

@dkilgore-eightfold dkilgore-eightfold merged commit 91fb3ce into EightfoldAI:main Oct 26, 2023
4 of 5 checks passed
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.

2 participants