[META] Remove localgov_sa11y dependencies from Microsites
## Context localgov_sa11y is being retired (the community now prefers Editoria11y after the two feature sets were merged — adopting it is a separate concern and a separate META). The problem this issue addresses: localgov_sa11y is a hard dependency of microsites and cannot currently be uninstalled. An editorial aid should never have been baked in, and this work removes the coupling — it does not introduce a replacement dependency. > Please review and check the assertions. There may be more pieces of the jigsaw! Current touchpoints: - localgov_microsites_group.info.yml — `localgov_sa11y:localgov_sa11y` in `dependencies:` (the uninstall blocker) - localgov_microsites.info.yml — `localgov_sa11y:localgov_sa11y` in `install:` - localgov_microsites composer.json — `drupal/localgov_sa11y` in `require` (`^1.0.0-beta1`) - localgov_microsites_group composer.json — in `require-dev`, exact-pinned `1.0.0-beta11` - localgov_microsites_group config/install/user.role.microsites_trusted_editor.yml — module dependency + `use_localgov_sa11y` permission - Kernel tests: ContentTypeHelperTest, GroupDefaultContentTest — sa11y in module lists ## Child issues ### localgov_microsites_group - [ ] Remove `localgov_sa11y:localgov_sa11y` from `dependencies:` in localgov_microsites_group.info.yml - [ ] Remove the localgov_sa11y module dependency and `use_localgov_sa11y` permission from config/install/user.role.microsites_trusted_editor.yml - [ ] Update hook: remove the sa11y dependency from the microsites_trusted_editor role config entity on existing sites; strip the permission only where the module is not installed (sites still using sa11y are unaffected) - [ ] Audit other shipped roles/config and PHP/Twig for sa11y references (`moduleExists`, permission checks) - [ ] Update kernel tests: remove sa11y from module lists or make conditional - [ ] Move/keep composer reference in require-dev as needed for tests; normalise the exact pin (`1.0.0-beta11` → caret range) ### localgov_microsites profile - [ ] Remove `localgov_sa11y:localgov_sa11y` from the `install:` list - [ ] Remove `drupal/localgov_sa11y` from `require` in composer.json (optionally leave in `suggest` during the deprecation window) - [ ] Audit profile config/install for sa11y references ### Documentation - [ ] README/docs: note sa11y is no longer installed or required, and that existing sites may uninstall it; link to the Editoria11y META for the recommended replacement ## Acceptance criteria - localgov_sa11y can be uninstalled without breaking the profile or group module - A fresh microsites install succeeds without localgov_sa11y and all tests pass - Existing sites that take no action continue to work unchanged ## Notes - Specify target branches before starting child issues (2.x / 3.x / D11 track) - The role-config dependency does not itself block uninstall (Drupal strips orphaned permissions); it is cleaned for correctness — the info.yml line is the actual unlock
issue