slackapi / java-slack-sdk

Slack Developer Kit (including Bolt for Java) for any JVM language
https://slack.dev/java-slack-sdk/
MIT License
571 stars 212 forks source link

Change font, size and color in Layout Block #1219

Closed RedHoes closed 10 months ago

RedHoes commented 11 months ago

How can I style text within a Slack message using Layout Blocks? Specifically, I want to change the font, size, and color of certain words to create emphasis or highlight important information. Thank you

Expected result:

(Tell what you expected to happen)

Actual result:

(Tell what actually happened with logs, screenshots)

Requirements

Please make sure if this topic is specific to this SDK. For general questions/issues about Slack API platform or its server-side, could you submit questions at https://my.slack.com/help/requests/new instead. :bow:

Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you agree to those rules.

seratch commented 11 months ago

Hi @RedHoes, thanks for asking the question.

You can use a few styles like bold and italic using "mrkdwn" formatting and header/context blocks enable you to use bigger/smaller fonts per a block.

However, there is no way to customize font, color, and font size on text. Also, there is no immediate plan to enhance the platform for these use cases. I hope this clarifies.

RedHoes commented 11 months ago

Thank you for you answers. But how about the modal, could I customize the size of the modal.

seratch commented 11 months ago

Slack's UI optimally supports both desktop and mobile platforms. Therefore, third-party apps can't customize size aspects of any surfaces.

seratch commented 10 months ago

Thank you for submitting this question. As we don't have anything further to share on this topic, let me close this issue now.