Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How to add icon to a component state in XD?

Community Beginner ,
Sep 02, 2021 Sep 02, 2021

Hi,

I've created a simple button and require a tick icon to appear on a new button (component) state. I also need to create error states with messages outside of the button area.
Any ideas as I have trawled the help pages but not come up with any result.
Thanks for looking

 

<Title renamed by moderator>

3.8K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Beginner , Sep 03, 2021 Sep 03, 2021

What you did is actually how we do it in XD for adding icons and additional elements per state. You see, XD is very limited in setting up reusable components, especially on setting up states for like buttons. BTW, your question is about buttons, but on your screenshot you shared a textbox. We are a bit confused on what you actually need. 

Translate
Community Beginner ,
Sep 02, 2021 Sep 02, 2021

You can select the state and edit there (add icons and error message). This will not overwrite the default state you currently have but only affects the state you are in. I hope this helps.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Sep 02, 2021 Sep 02, 2021

Hi,

Thanks for the reply. Unfortunately you are unable to add icons to a button state because you are unable to select it.
Yes you can edit copy, change colour etc but not add icons. Sketch allows you to do this easily. Am I missing something?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 02, 2021 Sep 02, 2021

You definitely can 🙂
Perhaps you can show us your steps so that we can replicate your problem?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Sep 02, 2021 Sep 02, 2021

Screenshot 2021-09-02 at 11.19.09.pngScreenshot 2021-09-02 at 11.20.11.png

 

So that's what I need to happen. I've just placed the tick on the complete state to show what I mean.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Sep 03, 2021 Sep 03, 2021

Here it is… 

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 03, 2021 Sep 03, 2021

Are you the OP?
So you added the icon to the component state - isn't that your goal?

Sorry a bit confusing here 😂

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Sep 03, 2021 Sep 03, 2021

That was just to show where the component needs to be.

 

I wouldn't be posting on here if I didn't need help and couldn't find anyway of making it work.

 

I look forward to your reply of how to accomplish this basic task.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Sep 03, 2021 Sep 03, 2021

What you did is actually how we do it in XD for adding icons and additional elements per state. You see, XD is very limited in setting up reusable components, especially on setting up states for like buttons. BTW, your question is about buttons, but on your screenshot you shared a textbox. We are a bit confused on what you actually need. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Sep 03, 2021 Sep 03, 2021

Thanks for pointing that out. You have been very helpful.

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Sep 03, 2021 Sep 03, 2021
LATEST

No problem. I'm glad to help.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines