Skip to content

Commit 2e5883a

Browse files
authored
Merge pull request #34 from crazyserver/main
MOBILE-4616 Add 4.5 style related docs
2 parents 815d11b + 8201e20 commit 2e5883a

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

general/app/customisation/remote-themes.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,11 @@ html {
163163
}
164164
```
165165

166+
#### Moodle site theme
167+
168+
Starting on Moodle App 4.4 you can restrict CSS rules to a specific site theme. So, when accessing to your site, the app will retrieve the name of the site theme and will add a class to HTML tag following the next pattern:
169+
`theme-site-MYTHEME` and you can use this selector to filter your rules.
170+
166171
#### Application theme
167172

168173
The application uses a light theme by default, but it adds the `dark` class to the `html` element when it is using a dark theme:

general/app/upgrading/plugins-upgrade-guide.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ Depending on which version of the app you're upgrading from, you'll need to go t
1818

1919
Other than the changes outlined in this document, there may be smaller API changes that aren't highlighted here. Make sure to check the [upgrade.txt](https://github.com/moodlehq/moodleapp/blob/latest/upgrade.txt) file for an exhaustive list with all the changes.
2020

21+
## 4.4 to 4.5
22+
23+
The Ionic version has been upgraded to v8 (from v7), make sure to check the relevant upgrade guides for [v8](https://ionicframework.com/docs/updating/8-0). In particular, the legacy syntax to declare input labels that was deprecated on Ionic7 now has been removed.
24+
2125
## 4.3 to 4.4
2226

2327
Starting with this release, the changes listed in [upgrade.txt](https://github.com/moodlehq/moodleapp/blob/latest/upgrade.txt) will only document breaking changes for APIs exposed to site plugins. Internal changes will no longer be documented. Make sure to check out the file to learn about the changes in this version.

general/app/upgrading/remote-themes-upgrade-guide.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ body.moodle-app-4-0 {
3030
}
3131
```
3232

33-
You can use these classes to target specific major and patch versions as well, so for example version 4.1.0 ships with `moodleapp-4`, `moodleapp-4-1`, and `moodleapp-4-1-0` classes. You can also use ionic versions to filter styles, such as `ionic3` or `ionic5`.
33+
You can use these classes to target specific major and patch versions as well, so for example version 4.1.0 ships with `moodleapp-4`, `moodleapp-4-1`, and `moodleapp-4-1-0` classes. You can also use ionic versions to filter styles, such as `ionic5` or `ionic8`.
3434

3535
:::caution
3636
Notice that mode and version classes moved from the `body` tag to the `html` tag in version 4.1. Learn more about this when [upgrading from 4.0 to 4.1](#40-to-41).
@@ -42,6 +42,10 @@ You can follow the same process that is documented in the [Moodle App Remote The
4242

4343
Make sure to read it in order to understand how to style your application for newer versions of the app. If you're upgrading your styles, it is likely that the documentation has been updated since you read it. So we recommend taking a look even if you're already familiar with Remote Themes.
4444

45+
## 4.4 to 4.5
46+
47+
Ionic version has been upgraded to v8 (from v7). This shouldn't have any direct impact on remote themes, but please verify that they continue to function correctly.
48+
4549
## 4.3 to 4.4
4650

4751
Ionic version has been upgraded to v7 (from v5). This shouldn't have any direct impact in remote themes; but make sure that they are still working properly.

0 commit comments

Comments
 (0)