fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

Overriding nested elements within a component

Open satbai opened this issue 9 years ago • 4 comments

Bug Report

  • Package version(s): All

Priorities and help requested (not applicable if asking question):

Are you willing to submit a PR to fix? (Yes, No) No Requested priority: (Blocking, High, Normal, Low) Normal

Describe the issue:

We are currently not able to correctly override styles in nested elements inside an Office Fabric component. The ideal solution would be having a way to specify your own class name for that particular DOM element and use it in your css but it’s not possible to do that today.

Actual behavior:

This is how we can currently override the styles. Override the button style inside CommandBar: <CommandBar className="command-bar-area" { ... } />

.command-bar-area { .ms-CommandBarItem-link { // override } }

Expected behavior:

I'm not sure what the best solution for this would be.

.command-bar-area { .command-bar-item-button { // override } }

satbai avatar Mar 15 '17 20:03 satbai

We are currently in talks about a solution for this but we don't have anything concrete right now.

gokunymbus avatar Mar 15 '17 20:03 gokunymbus

Command bar is in the middle of some revisions that should make it a lot more customizable.

micahgodbolt avatar Mar 16 '17 22:03 micahgodbolt

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions to Fabric React! Why am I receiving this notification?

stale[bot] avatar May 02 '18 23:05 stale[bot]

This issue has been automatically closed because it has not had recent activity after being marked as stale. If you belive this issue is still a problem or should be reopened, please reopen it! Thank you for your contributions to Fabric React! Why am I receiving this notification?

stale[bot] avatar May 18 '18 18:05 stale[bot]