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

[Bug]: Individual tab styles in multisheet does not work #4287

Open
1 task done
boxsnake opened this issue Mar 24, 2025 · 1 comment
Open
1 task done

[Bug]: Individual tab styles in multisheet does not work #4287

boxsnake opened this issue Mar 24, 2025 · 1 comment
Labels

Comments

@boxsnake
Copy link

Is the bug applicable and reproducable to the latest version of the package and hasn't it been reported before?

  • Yes, it's still reproducable

What version of Laravel Excel are you using?

3.1.62

What version of Laravel are you using?

11.36.1

What version of PHP are you using?

8.3.17

Describe your issue

When using WithMultipleSheets, only WithDefaultStyles, WithStyles on the outer class works.

// outer.php
class DemoSheets implements
    WithMultipleSheets,
    WithDefaultStyles,
    WithStyles
{
    public function sheets(): array
    {
        return [ new DemoTab() ];
    }
}

// inner.php
class DemoTab implements
    WithDefaultStyles,
    WithStyles
{
}

How can the issue be reproduced?

Can be reproduceable as descibed above.

The function styles and function defaultStyles in DemoSheets works, but the functions in DemoTab is never invoked.

What should be the expected behaviour?

Styles in tabs can also work as that perform in single tab exporting process.

@boxsnake boxsnake added the bug label Mar 24, 2025
@patrickbrouwers
Copy link
Member

Default styles are workbook styles, so for the entire spreadsheet, not per tab.

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

No branches or pull requests

2 participants