You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am creating a component library using FAST Foundation and, in some cases, I'd simply like to use a Foundation component but style it in a different way. I see some documentation on the compose API that seems to fit the bill, but I'm not completely sure how the style attribute in the compose options should be created.
Do the Foundation styles need to be merged with my custom styles before calling compose? Or can my custom styles just be sent into the compose call and they will be automatically merged with the Foundation component's styles? If the former, how does one access the base Foundation component styles in order to use them as the basis for the merged styles?
I have looked through the docs and couldn't find an example piece of code that did this.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am creating a component library using FAST Foundation and, in some cases, I'd simply like to use a Foundation component but style it in a different way. I see some documentation on the
compose
API that seems to fit the bill, but I'm not completely sure how thestyle
attribute in thecompose
options should be created.Do the Foundation styles need to be merged with my custom styles before calling
compose
? Or can my custom styles just be sent into thecompose
call and they will be automatically merged with the Foundation component's styles? If the former, how does one access the base Foundation component styles in order to use them as the basis for the merged styles?I have looked through the docs and couldn't find an example piece of code that did this.
Beta Was this translation helpful? Give feedback.
All reactions