且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

关于SAP Spartacus tab按键Accessibility技术实现的一些问题和波兰同事的解答

更新时间:2022-09-03 08:29:04

When we press tab key on Spartacus page, there will be a focus state border displaying which wraps the control being focused. The border is drawn as light blue color.


关于SAP Spartacus tab按键Accessibility技术实现的一些问题和波兰同事的解答


关于SAP Spartacus tab按键Accessibility技术实现的一些问题和波兰同事的解答

Answer

Its a bit of a mix between Spartacus and default html. Usually, that border box will appear over any focused html element by default. But as we build more complex apps with angular for example, we can end up losing this default border box due to some way we’ve styled an element or have veered from default browser behaviour. In Spartacus’s instance, we have implemented a border box in css to make sure we can see this focused element that is a little more robust and themed so it works with more of our custom elements