Hello,
I work on my controls and I really want them to be look-and-feel as a native controls in the UCI interface.
Here is what I get so far:
const textFieldStyle = (props: ITextFieldStyleProps): Partial < ITextFieldStyles > => ({
...(
props.focused ? {
fieldGroup: {
border: "none",
selectors: {
":after": {
border: "none"
}
}
},
field: {
border: "1px solid rgb(102, 102, 102)",
fontFamily: "SegoeUI,'Segoe UI'",
}
} : {
fieldGroup: {
border: "none",
selectors: {
":after": {
border: "none"
},
":hover": {
border: "1px solid rgb(102, 102, 102)"
}
}
},
field: {
fontWeight: 600,
fontFamily: "SegoeUI,'Segoe UI'",
selectors: {
":hover": {
fontWeight: 400
}
}
}
})
});
//And then usage
<TextField placeholder={"---"} styles={textFieldStyle} />
But I don't want to reinvent the wheel so it would be great if product team can share the styling and develop some kind of styling guide. @HemantG @AnqiChen