Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
joetesta
Level 10

Button Component default dot

Greetings, 
I'm trying to use a button component with just 2 images (focus and off-focus) and no text.
A random dot appears in the middle of my buttons, it seems this dot is always placed before the text even when the text is empty, yes?  Any way to get rid of this dot?  I'd like to blend it into the background by setting the color to match but it overlaps some areas that won't work.  Maybe there's a way to set the font size to 0 or something here?
tyvmia
aspiring
0 Kudos
4 Replies
joetesta
Level 10

Re: Button Component default dot

aha!  the dot is the default iconUri that can be overridden with iconUri=""
I think that could be corrected / clarified a bit under "iconUri" here https://sdkdocs.roku.com/display/sdkdoc/Button 
For default instead of "" it should show the dot maybe?
thanks,
Joe
aspiring
0 Kudos
tim_beynart
Level 7

Re: Button Component default dot

Nice! this has been bugging me, but I never spent the time to figure it out.
0 Kudos
Roku Employee
Roku Employee

Re: frustrated with incorrect RSG documentation

"joetesta" wrote:
12 days and nobody has time to stick a dot (• maybe?) on this page to make it correct / less confusing? https://forums.roku.com/viewtopic.php?f ... 60#p564282  

i have looked at it but it doesn't seem like it should be "a dot". Did you try printing the values of iconUri, focusedIconUri in the console, do they show anything different than an empty string?
0 Kudos
joetesta
Level 10

Re: frustrated with incorrect RSG documentation

"RokuNB" wrote:
"joetesta" wrote:
12 days and nobody has time to stick a dot (• maybe?) on this page to make it correct / less confusing? https://forums.roku.com/viewtopic.php?f ... 60#p564282  

i have looked at it but it doesn't seem like it should be "a dot". Did you try printing the values of iconUri, focusedIconUri in the console, do they show anything different than an empty string?

i see your point, I believe they did appear as empty strings in debug, but on screen they are not empty.  
Figuring out how to suppress the visible dot on screen took more effort than if this had been explained somewhere in the documentation - even though it's an empty string, overriding that empty string with ANOTHER empty string makes the mystery dot go away.  Rather than an HTML bullet, maybe a footnote on the page might be appropriate then? Or maybe just a mention in the "Use" column that the default bitmap is a circle?
aspiring
0 Kudos