Open chillu opened 7 years ago
@wilr Given you kicked off the UI button refactor, would you be able to help out with this? :D
Sure :) 👍 I thought I had got all the ones out of framework and CMS but the original commits have been rebased so many times.
@chillu Let me know if any specific modules you want to me update as well for 4.0. Most of the modules didn't install on 4.0 (like userforms) so don't want to double up any upgrade work internally.
There's still one place where I haven't been able to remove these clases, which is in the legacy insert media dialog, which itself is a jquery-ui dialog. If we can remove this (and rely on the new asset-admin dialog) we can make this task a lot easier. I suggest to focus on removing UploadField in advance of expecting the end of ss-ui-button.
@wilr I guess upgrading modules with CMS customisations (new buttons) would be done as part of upgrading other aspects of the modules - IMHO it's more important to clean up core for now.
Overview
We've removed the reliance of buttons on jQuery UI (see https://github.com/silverstripe/silverstripe-framework/pull/6354 and follow up PRs). This also meant renaming button classes from
.ss-ui-button
to.btn
. There's still 54 matches of the old.ss-ui-button
classes around SCSS/JS/SS/PHP files in core though - we need to clean this outRelated