Sketch Guide | How to make scalable symbols | 3) Tooltip

Chi Nguyen Thuy
3 min readSep 2, 2020

Are you having this problem when you’re working with your tooltip symbol?

The container does not scale to the size of the content.

Or when you try to resize, the symbol is broken…. 😢

Then you end up detaching it from the symbol or changing the icon. 🤦‍♀️

If you’re having this problem, you are in the right place! This article may help you.

Do you want your symbol will work like this?

  • The container does not break when resizing.
  • The tooltip container will grow as the size of the text

Let me show you how by utilizing Smart Layout and Resizing setting 😉

1. Setting for tooltip container

The tooltip is formed by 2 elements: the Rectangle and Diamond shape.

When resizing, ideally the diamond shape will remain the same position relatively with the rectangle and its size will be fixed.

Here is the setting needed for the example shown:

  • For the diamond shape:

⚙️ Resizing: Pin to the bottom & fixed size both horizontally and vertically.

ℹ️ Depending on which side the diamond shape is located to the rectangle, the pin to the edge option will be set accordingly.

Eg: If the diamond shape is on the left side of the rectangle, it is set to pin to the left edge when resizing.

Pin to left edge Setting for Diamond shape
  • For the rectangle:

⚙️ Resizing: Pin to the bottom

ℹ️ To make the diamond stick to the rectangle when resizing, the rectangle will be set to pin to the same direction as the diamond shape.

Eg: If the diamond shape is on the left side of the rectangle, the setting for the rectangle will be pin to left

Pin to left edge Setting for Rectangle

2. Setting for tooltip label

⚙️ Resizing: Pin to Left, Top, & Right and Fix size horizon
(Benefit: keep the label’s position relative to the container)

3. Setting for the component itself

There are 2 settings needed for the component in the Inspector panel: Symbol Masters & Layout.

⚙️ Symbol Masters: Adjust content on resize
(Benefit: the layer resizes relatively to the art-board when it grows)

⚙️ Layout: Horizontal (from left to right). Depending on which direction you want your component to grow, you may wish to do the setting accordingly.

4. Override Setting:

To keep the Override panel organize and limit the flexibility of modifying colour style and font style, the only element that should be allowed to override is the “Text value" of the label.

Override panel for Tooltip

Ready file here: https://drive.google.com/file/d/1lYVuaVLn51hIm0VTjorRmeaZrsi8jpBc/view?usp=sharing

This is all about the tips for a scalability tooltip symbol. You're all set 🏄‍♀️

Hope it helps!

--

--