317 questions
0
votes
1
answer
88
views
Fluent UI React v9 Button TypeScript errors in SPFx 1.21.1 with React 17 & TypeScript 5.3
I’m trying to use Fluent UI React v9 controls in a SharePoint Framework (SPFx) 1.21.1 web part, but I’m running into multiple TypeScript errors and cannot get even a single control to render.
Here are ...
0
votes
0
answers
52
views
How can I make the FluentUI style of my Blazor app also apply to a dynamic react-jsonschema-form loaded using JS-interop?
In my Blazor view, I am dynamically loading a React component that is merely a wrapper around react-jsonschema-form:
<div ref={formParentDivRef} onBlur={handleBlur}>
<Form
ref={...
0
votes
0
answers
72
views
Module not found: Error: Can't resolve '@fluentui/react/lib/Utilities' in 'C:user\...\node_modules\@fluentui\react-charting\lib' in React
I am facing an issue while building my React TypeScript app. The build fails with the following error:
Module not found: Error: Can't resolve '@fluentui/react/lib/Utilities' in 'C:user\...\...
0
votes
0
answers
44
views
Get the name on a FluentUI React spinbutton
I am designing an eventhandler to handle various inputs that are constructed using the FluentUI React component library.
Most of the components emit "standard" React.Changeevents (such as ...
0
votes
1
answer
440
views
Why are the CSS variables in my FluentUI React app undefined?
I have a fairly complex React App (v18) using FluentUI (v8) and building with Vite (v5). There are a collection of CSS variables which are influenced by the theme, but for my app they seem to be ...
1
vote
1
answer
167
views
How do I make a child component visible only when the parent is hovered in FluentUI + React?
StackBlitz here
I'm trying to create a card component that represents a delete-able item, and I want the delete button to only be visible when the card is hovered.
According to what I've found, this ...
0
votes
2
answers
96
views
React Youtube card. Playbutton not rendering properly in CSS
I have below example where I am trying to render a YouTube card. The issue I am facing is that the play button white background is not adjusting into the play icon that I am setting through my CSS ...
1
vote
0
answers
109
views
Large Bundle size (13MB) for Outlook React Add-in using Yo Generator
When I create an Outlook Add-in using React Framework through the Yeoman generator, and without applying any modifications, if I run the npm run build I get a bundle of 13MB for the taskpane.js, it ...
1
vote
0
answers
117
views
Sticky headers in css and html but relative to the grandparent container
I am using the ShimmeredDetailsList from fluent UI 8 and I want to make some rows sticky.
The problem is that this component renders the items inside virtualized pages and if I set position: sticky on ...
0
votes
1
answer
163
views
Having tabs that look like buttons
I have this example that I took from React Fluent UI: https://stackblitz.com/edit/fahztj?file=src%2Fexample.tsx.
I tried to modify it in a way that the component Tab is now a Button, however the tabs ...
0
votes
1
answer
413
views
I been trying to add icons from fluent ui northstar into fluent ui dropdown.. There is no proper documentation available
I tried with render Item to add a divider and Icon to fluent ui drop but icons are not visible
even the default value not showing the icons and the dropdown is not showing up after clicking
import * ...
0
votes
1
answer
502
views
Why doesn't the highlighted date in Fluent UI React's DatePicker change if default value was set?
Referring to Fluent UI React v9's DatePicker: https://react.fluentui.dev/?path=/docs/compat-components-datepicker--default, the value property is the default value. But when I set it, something ...
0
votes
2
answers
88
views
Dropdown option not being set when changing my DropdownSection component
I have a Link dropdown which changes a DropdownSection component which contains an array of options.
When I change to a different Link, I would like to set the default option of the DropdownSection to ...
0
votes
1
answer
269
views
React custom editable grid is preserving values from deleted rows
I am using fluent-ui's DetailsList to render a table. I am trying to convert this into a simple editable grid. The 1st column is a readonly string, the 2nd column is an editable TextField and the 3rd ...
0
votes
3
answers
93
views
How to handle an event of a child element, on a parent element?
I have a component that contains a Checkbox component from the @fluentui/react-components library, and I am using an onChange event on the Checkbox component.
const ContactText = ({ contact, ...
1
vote
0
answers
145
views
How to update edited value in the Fluent UI React <DetailList/>
I am building a table grid using Fluent UI. The project is in React with TypeScript. However, I am facing a problem with the updated value. After double-clicking, the edit box appears in the selected ...
2
votes
1
answer
984
views
With FluentUI React v9, how to change the color of the primaryText and secondaryText?
With FluentUI React v9, how to change the color of the name and secondaryText for only one specific component (not globally in the theme)?
This sample sucessfully change the background to red but I ...
2
votes
0
answers
340
views
Rooster-react set ribbon theming based on fluent ui theme provider
Problem
I'm working on a react app (CRA) with rooster-react, which utilizes @fluentui, so I was trying to set the theme of the toolbar using the respective theme provider, but it doesn't seem to have ...
0
votes
1
answer
1k
views
Dynamic Styles in Fluent UI v9/ Fluent UI 2
I am trying to pass dynamic CSS styles in html tags using Fluent UI v9 or Fluent UI 2.
In the previous versions I could use the styles prop and wrap it in a function where we pass the props and ...
0
votes
1
answer
904
views
Popover is not closing when clicking outside in fluent ui
I am using fluent ui popover component in my react app. When I am clicking outside the popover component it is not closing. Although in the documentation, the same code is working as expected.
Here is ...
0
votes
1
answer
281
views
react fluent v9 replace entire slot
I'm trying to follow the doc here to replace an entire slot
https://react.fluentui.dev/?path=/docs/concepts-developer-customizing-components-with-slots--page#replacing-the-entire-slot
I'm getting ...
2
votes
0
answers
385
views
add custom attribute to primary button of fluent ui
I need a unique custom attribute on the clickable part of fluent ui primary button.
when I put on it custom attribute that starts with data-
for example
<PrimaryButton data-testid="...
0
votes
1
answer
1k
views
React and Fluent UI style - type 'string' is not assignable to type 'undefined'
I have a Card component from FluentUI library. I want to hover over the card and change the color of the border. This is my attempt to do it but for some reason I am having below error:
type 'string' ...
3
votes
1
answer
3k
views
FluentUI React v9 Combobox - Unable to set component width
Is there some way to specify width of the Fluent UI Combobox component (@fluentui/react-components)?
For other input elements it can be set using style={{width: "123px"}} (not sure if that's ...
0
votes
3
answers
922
views
How do I add an opacity to the background color css attribute using a fluent ui color?
So I am trying to add an opacity to a background color but the specific background color I am using is coming from the fluent UI library, thus using Design Tokens.
I know normally, I can add opacity ...