Quick tip Friday #1 - labels
Quick tip Friday - labels in Power Apps ✨
If you've ever worked with Power Apps, you'll know that there is no way to highlight/change colour of individual words within a label (there was a hack for this before but it doesn't work anymore).
If you wanted to write the sentence as in the thumbnail - you'd have to use *6* individual labels. A nightmare from maintenance perspective 😅
But you can use my favourite control in Power Apps - the ✨ HTML control ✨ - to bring this number from 6 to 1. You don't know HTML? I've pasted the code for you below, and you can also use ChatGPT if you get stuck 😉
And lastly... why do you need this? Don't forget that each individual control in app is rendered separately, so when you have hundreds and hundreds of controls, you need to start looking at optimising performance. Which is where the control comes to the rescue!
Also pro tip - please don't forget accessibility. As HTML control is a display control, please make sure to add the text you're presenting in the label to the 'AccessibleText' property so it can be picked up correctly by screen reader users.
Should I make quick tip Fridays a series? 👀
PS. New Power Apps template is dropping next week!