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(ui-tabs): extends the customization of Tab component #1825

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

szalonna
Copy link
Contributor

@szalonna szalonna commented Dec 12, 2024

Closes: CLX-276

Adds the possibility to disable built-in styling of a Tab to replace with a custom component through renderTitle

  • adds customTab flag to Panel to remove the default styling from the Tab
  • adds alignTab prop to Panel to allow to customzie the Tabs's relative alignment in the container flexbox

Closes: CLX-276

Adds the possibility to disable built-in styling of a `Tab` to replace with a custom component
through `renderTitle`
- adds `customTab` flag to `Panel` to remove the default styling from the
`Tab`
- adds `alignTab` prop to `Panel` to allow to customzie the `Tabs`'s relative alignment in the
container flexbox
@szalonna szalonna self-assigned this Dec 12, 2024
Copy link

github-actions bot commented Dec 12, 2024

PR Preview Action v1.4.8
🚀 Deployed preview to https://instructure.github.io/instructure-ui/pr-preview/pr-1825/
on branch gh-pages at 2024-12-12 13:59 UTC

@balzss
Copy link
Contributor

balzss commented Dec 12, 2024

thanks for the PR @szalonna! this is an OK solution but I think it would be more in line with our ways of doing custom styling if instead of adding these new props, you would introduce new theme variables (e.g. for alignment) so it could be done with themeoverrides. what do you think @matyasf @HerrTopi ?

@HerrTopi HerrTopi closed this Dec 12, 2024
@HerrTopi HerrTopi reopened this Dec 12, 2024
@balzss
Copy link
Contributor

balzss commented Dec 12, 2024

@szalonna or you might not need any changes at all, please check this example to see if this level of customization is enough for your usecase: https://codesandbox.io/p/sandbox/broken-monad-hz83k4?file=%2Findex.js%3A28%2C29-28%2C40

@matyasf matyasf requested review from balzss and matyasf December 13, 2024 12:43
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.

3 participants