single-spa / single-spa-react

Single-spa lifecycles helper for React applications
https://single-spa.js.org/docs/ecosystem-react.html
MIT License
227 stars 63 forks source link

Adding styles to app #124

Closed FBurner closed 3 years ago

FBurner commented 3 years ago

Hi,

it seems you cant apply flexbox to the apps?

At least i did not find any attributes for that.

"single-spa": "^5.9.0",

joeldenning commented 3 years ago

Flexbox is built into the browser - single-spa cannot change or remove that functionality. You can use flexbox.

FBurner commented 3 years ago

Maybe it was not clearly formulated from my side. I dont see how i can add classes or styles to the root of the applications.

joeldenning commented 3 years ago

What do you mean by "root of the applications"? Are you referring to <div id="single-spa-application:app-name"></div>? If so, you can style it with the following css:

#single-spa-application\:app-name {
  display: flex;
}