317 questions
0
votes
1
answer
96
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 ...
1
vote
0
answers
24
views
Fluent UI GroupedList not showing both files and folders in same-level folder
I'm using Fluent UI's GroupedList component in a React app to build a file/folder browser UI. The structure I'm rendering is hierarchical, where each group represents a folder, and it can contain both ...
0
votes
0
answers
55
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
89
views
Getting Term children or parentId or full Term tree from Microsoft Graph API
I'm having trouble getting the full term tree from the graph. The sharepoint Termstore has a hierachy and to get to display the full hierachy in my application I have to make hundreds of calls because ...
0
votes
0
answers
74
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
1
answer
196
views
FluentUI React V9 TimePicker combobox popout not working as expected
Anyone used a fluentui react v9 time picker component?
I created a PCF control for a datetime picker. I used the Time Picker With Date Picker as a reference for my PCF, and installed both @fluentui/...
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
0
answers
65
views
FluentUI React Component Set AvatarProps background to white
I'm using fluent ui react components. I want to have the AvatarImage with a whitebackground.
const avatar: AvatarProps = { image: { src: imageSrc } };
No matter what I do I cannot seem to find a way ...
0
votes
1
answer
442
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 ...
3
votes
0
answers
99
views
Styling Fluent UI checkboxes within a dropdown
I need to style a fluent UI checkbox using the style props. However based on the documentation it is unclear how to style the checkbox differently in its checked vs unchecked state. I am able to set ...
1
vote
1
answer
172
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
1
answer
193
views
Issue using onRenderOption for fluent dropdown custom rendering - Doesn't update text correctly
I have a component derived from the fluent ui Dropdown, called DropdownWithFilter. It sorts Dropdown options using a DebounceSearchBox. I have DropdownWithFilter working perfectly, but my last step is ...
0
votes
2
answers
100
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 ...
-2
votes
1
answer
348
views
What is Stack / Box aquivalent in Fluent UI V2 and best practice on accessing design tokens
Problem:
From other UI Libraries, I am used to having some sort of Box and/or Stack component that provides an API to the underlying tokens system.
In Fluents V2 docs under "design language",...
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 ...
0
votes
1
answer
236
views
Can't reszie fluent ui dropdown component placed under fluent ui datagrid
I created a fluent ui data grid using this guide https://react.fluentui.dev/?path=/docs/components-datagrid--docs
and from that doc, there's a doc for dropdowns and I placed a dropdown component in ...
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 ...
-1
votes
2
answers
316
views
Textarea with Multiple Placeholders
We are trying to implement a text area similar to below where in in a single sentence, there are multiple placeholders. We are using react for this. Is it possible to achieve below result using any ...
0
votes
1
answer
164
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
2
answers
248
views
How do I solve a "select all" checkbox state not updating correctly?
I'm writing a simple "select all" checkbox that checks/unchecks all other checkboxes, using react native with typescript and FluentUI checkboxes.
Summarized issue: The state of the "...
0
votes
1
answer
416
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
94
views
How Microsoft control display breadcrumb max display items?
when I search breadcrumb component in breadcrumb. I found that when I resize the screen smaller, it's auto collapse item like this to fit screen
resize screen 1
resize screen 2
and auto display more ...
0
votes
1
answer
506
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
1
answer
201
views
FluentUi Timepicker Remove border and make the control color grey
I am unable to remove the border and make the control color to grey.I have tried different things i can able to see in test harness but after importing solution in dynamics i am unable to find changes
...
0
votes
2
answers
89
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
797
views
Adding custom SVG Icon to Fluent UI Command Bar Items
I have multiple command bar items that need custom SVG Icons, but no matter what I do, I cannot get the icons to work for my life.
Here is the SVG I am registering as an icon:
registerIcons({
...
0
votes
1
answer
272
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
0
answers
141
views
Combobox with scroll event
I have a combox and I want to do somethings when we reach the end of the list while scrolling. I am not able to attach an event listener.
let's assume that we just have to print 'reached' in the ...
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, ...
-2
votes
1
answer
445
views
How do i solve this error Unexpected Application Error! Cannot set property value of #<TextFieldBase2> which has only a getter?
I am using typescript, react-hook-form along with yup validation and fluent ui. Whenever i am trying to submit a form i am getting this error ' Unexpected Application Error! Cannot set property value ...
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 ...
4
votes
0
answers
347
views
How to make an overlay that exactly covers an object-fit:contain image
Setup:
I am provided a container div that can dynamically be any size and an image that can be any size. I want the image to always fit in the center of the container (with allowances for the ...
2
votes
1
answer
993
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 ...
0
votes
1
answer
383
views
How to preserve input values when navigating to another page with React Router
I have a form that I want to submit, and the address fields can be populated by selecting an Address that will navigate you back to the form and fill in the form's input values.
I use useNavigate() to ...
2
votes
0
answers
342
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
431
views
Export current view of DetailsList (Fluent UI) to csv
I would like to know how to export the current view of detailsList(filtered, sorted data) to csv or any other format. Maybe someone already had an experience with this.
Thank you
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 ...
1
vote
3
answers
1k
views
Fluent UI Modal dialog resizing and not taking whole screen
I have Fluent UI modal dialog that I am showing in my site very similar to below example.
https://codesandbox.io/s/practical-boyd-m5rw2k?file=/example.tsx
EDIT: The code in codesandbox.io is the same ...
0
votes
1
answer
906
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
245
views
Disable onClick event on a FluentUI React component
I have a Card Fluent UI component defined like this
<Card className={mergeClasses(styles.card, className)} onClick={() => onClicked(id)} >
<CardContent {...props} />
...
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 ...
0
votes
1
answer
180
views
Can I render a React component after it returns?
I have a React component like this
export const NewComponent: React.FC<NewComponentProps> = ({prop1, prop2, prop3 }) => {
const getAbsPositionDialog = () => {
const element = ...
2
votes
0
answers
387
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
311
views
Why isn't flexGrow prop working from FluentUI?
Im creating a tiny replica of a table/detailsList with the intention to make the columns responsive and share the space available equally. Im trying to use the flexGrow prop from fluentUI.
Problem is ...
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' ...
0
votes
1
answer
855
views
How to register an icon in FluentUI from an external SVG?
I'm trying to register an SVG as an icon, in Fluent UI.
If the SVG exists in the local, referencing it directly like so:
registerIcons({
icons: {
'icon-name': <svg></svg>
}
})...
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
0
answers
40
views
How add Breadcrumb to list from react-teams
Is there anyway to add Breadcrumb to List behind emptySelectionActionGroups need to show name and label for my list?
Can i add a button in right side behind filter text?
Is there any example with ...
0
votes
3
answers
926
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 ...
1
vote
1
answer
672
views
FluentUI DetailsList - item state updated but component not rendered properly
i have a button in my column to change the color of the Row , i have check the componentdidupdate and shouldupdatecomponent state are getting change but the change not reflected in the UI, when ...