英文:
How can the Google App Script cards be styled?
问题
-
以下按钮始终显示大写字母的文本(SIGN IN)。是否有办法避免使用 CardService.newTextButton().setText('Sign in') 的大写文本字符串?
-
是否有办法自定义整个卡片的背景颜色?
英文:
-
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')? -
Is there a way to custom-style the whole card with a particular background color?
答案1
得分: 0
- 您可以使用ImageButton。显然这有点巧妙,但应该仍然满足辅助功能要求,因为它具有alt文本。
- 据我所知,目前还无法实现这一点。
请为这两个问题提交单独的功能请求。
英文:
Sorry I don't have better answers!
- You can use an ImageButton. Obviously a bit of a hack, but should still meet a11y requirements with alt-text.
- This is not currently possible as far as I can tell.
Please file separate feature requests for each of these.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论