fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

"ID" passed as props should be used in basic controls like "TextField" etc.

Open satishc-dev opened this issue 9 years ago • 0 comments

Hi, We see that HTML element IDs are being generated in OfficeFabric react components using the utility method "getId()".

It will be great, if user defined "ID" value that is passed via Props is acknowledged.

Reason for the ask - As part of accessibility changes, we are seeing a good amount of dependency on IDs. We have scenarios, where we wish to set element ids through some base level methods and thus use them in other elements created for description, labels, etc.

Even though many of the OfficeFabric controls expose props for ARIA, still it will be good to expose setting IDs so that we can create custom UIs using OfficeFabric controls.

Here is a sample snapshot of something we wish to achieve -

image

Thanks, Satish

satishc-dev avatar Feb 20 '17 14:02 satishc-dev