点击按钮时的蓝色阴影

问题描述 投票:2回答:1

当我点击按钮时,如何摆脱按钮周围的蓝色阴影?

我正在使用Elm和mdgriffith/elmui构建一个Web应用程序。

点击前按钮的图片:

enter image description here

然后点击:

enter image description here

榆木代码:

module Main exposing (main)                                        

import Browser                                                     
import Element as E                                                
import Element.Input as Ei                                         
import Element.Border as Eb                                        

main = E.layout [ E.padding 30 ] <|                                
    Ei.button []                                                   
        { onPress = Nothing                                        
        , label = E.text "A button"                                
        }           

(Qazxswpoi)

如果可能的话,我不想使用任何CSS。

编辑:

我不认为这是重复的,因为我的问题是关于如何使用elm-ui而不是CSS。

accessibility elm elm-ui
1个回答
3
投票

我要使用的解决方案是使用一些CSS,因为我找不到在elm-ui中执行此操作的方法。这有效:

run it in Ellie

(感谢格伦斯的评论。)

© www.soinside.com 2019 - 2024. All rights reserved.