Open swashbuck opened 6 months ago
Currently, the button icon is baked into the less. It would be good to have this as a configurable option named _iconClass.
_iconClass
"_scrollPrompt": { "_isEnabled": true, "instruction": "Scroll down", "_iconClass": "icon-controls-down" }
The icon class would appear on the .icon element, which also makes it easier when we need to globally replace certain icon types. For example:
.icon
.icon-controls-down { font-family: 'custom-icon-font'; .icon-controls-down-custom; }
While we are making this change, the .icon element should align to other implementations (ex. use a span tag instead of a div).
span
div
@zubairslamdien Can you take this one on since you're working on #12 ? Thanks!
That should be fine @swashbuck. I'll try to get to it in the week.
Subject of the enhancement
Currently, the button icon is baked into the less. It would be good to have this as a configurable option named
_iconClass
.The icon class would appear on the
.icon
element, which also makes it easier when we need to globally replace certain icon types. For example:While we are making this change, the
.icon
element should align to other implementations (ex. use aspan
tag instead of adiv
).