Google App Script卡片可以如何样式化?

huangapple go评论67阅读模式
英文:

How can the Google App Script cards be styled?

问题

  1. 以下按钮始终显示大写字母的文本(SIGN IN)。是否有办法避免使用 CardService.newTextButton().setText('Sign in') 的大写文本字符串?

  2. 是否有办法自定义整个卡片的背景颜色?

英文:
  1. The following button always displays the text in all caps (SIGN IN).
    Is there a way to avoid capitalized text strings using
    CardService.newTextButton().setText('Sign in')?

  2. Is there a way to custom-style the whole card with a particular background color?

答案1

得分: 0

  1. 您可以使用ImageButton。显然这有点巧妙,但应该仍然满足辅助功能要求,因为它具有alt文本。
  2. 据我所知,目前还无法实现这一点。

请为这两个问题提交单独的功能请求

英文:

Sorry I don't have better answers!

  1. You can use an ImageButton. Obviously a bit of a hack, but should still meet a11y requirements with alt-text.
  2. This is not currently possible as far as I can tell.

Please file separate feature requests for each of these.

huangapple
  • 本文由 发表于 2023年4月11日 03:39:33
  • 转载请务必保留本文链接:https://go.coder-hub.com/75980173.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定