Various projects not using OOUI are creating HTML which contains the class warningbox and relies on styles in core. This is going to make it very difficult to migrate all these extensions in future.
- https://github.com/search?q=org%3Awikimedia+warningbox&type=Code (52 results)
- https://github.com/search?utf8=%E2%9C%93&q=org%3Awikimedia+errorbox&type=Code (163 results)
- https://github.com/search?utf8=%E2%9C%93&q=org%3Awikimedia+successbox&type=Code (183 results)
Can I suggest we create a helper function messageBox in core and update everything generating warning boxes to use it.
This will help with standardisation efforts.
MobileFrontend has a simple abstraction here which can be used for guidance: