web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Responsive font size o...
Power Apps
Unanswered

Responsive font size of labels inside component

(0) ShareShare
ReportReport
Posted on by 14

How can I make the font size of this text label within a custom component (an app footer) change according to screen size?
The following code (on the size property of this label) does not result on any change:

Switch(App.ActiveScreen.Size,1,12,2,14,3,16)
Categories:
I have the same question (0)
  • SpongYe Profile Picture
    5,603 Super User 2025 Season 2 on at

    Hi @fpsdf 

     

    To increase the font automatically the ScreenSize can help with that when the canvas screen changes, try this formula:

    Switch(Parent.Size, ScreenSize.Small,12, ScreenSize.Medium,18,30)

    The font will be 12 in the small screen and 18 for the medium screen otherwise it will be 30 ,and you can change these font sizes to your desired font sizes.

     

    If you have any questions or feedback, please let me know. Have a great day! 😊

    -----------------------
    PowerYsa Power Platform Enthusiast [LinkedIn] | [Youtube| [My blog]

    I love to share my knowledge and learn from others. If you find my posts helpful, please give them a thumbs up 👍 or mark them as a solution ✔️. You can also check out my [@PowerYSA] for some cool solutions and insights. Feel free to connect with me on any of the platforms above. Cheers! 🍻

  • fpsdf Profile Picture
    14 on at

    Thank you, @SpongYe!

    Yet, the Parent.Size part gets underlined in red, stating "Name isn't valid. 'Size' is not recognized.".

    Let me just remind you that this is a label inside of a custom component (I'll attach the hierarchy below)

     

    fpsdf_0-1718266786567.png

     

  • SpongYe Profile Picture
    5,603 Super User 2025 Season 2 on at

    Hi @fpsdf 

     

    My bad, can you try this:

    Switch(App.ActiveScreen.Size, ScreenSize.Small, 12, ScreenSize.Medium, 13, 14)

     

    If you have any questions or feedback, please let me know. Have a great day! 😊

    -----------------------
    PowerYsa Power Platform Enthusiast [LinkedIn] | [Youtube| [My blog]

    I love to share my knowledge and learn from others. If you find my posts helpful, please give them a thumbs up 👍 or mark them as a solution ✔️. You can also check out my [@PowerYSA] for some cool solutions and insights. Feel free to connect with me on any of the platforms above. Cheers! 🍻

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard