Skip to content

Commit 22c7ef5

Browse files
committed
[FIX] controllibraries.md: minor documentation fixes
Change-Id: I66b52a7b1abfcd4bba705013d8bcf208b141c908
1 parent 6feb7d4 commit 22c7ef5

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

docs/controllibraries.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,23 +32,23 @@ some.lib/
3232
| +---some/
3333
| +---lib/
3434
| +---themes/
35-
| +---base
35+
| +---base/
3636
| +---img/
3737
| img-RTL/
3838
| library.source.less
39-
| SomeControl.css
40-
| sap_bluecrystal
39+
| SomeControl.less
40+
| sap_bluecrystal/
4141
| +---img/
4242
| img-RTL/
4343
| library.source.less
44-
| SomeControl.css
44+
| SomeControl.less
4545
| .library
4646
| library.js
4747
| messagebundle.properties
4848
| messagebundle_<any-locale>.properties
4949
| SomeControl.js
5050
| SomeControlRenderer.js
51-
+---test
51+
+---test/
5252
+---some/
5353
+---lib/
5454
+---SomeControl.html
@@ -232,15 +232,17 @@ The one in the base theme imports `base.less` and `global.less` from the core li
232232
...
233233
```
234234

235-
The one in the specific theme (here: sap\_hcb) imports the above `library.source.less` from the base theme in this library and `global.less` from the specific theme in the core library (and all existing sap\_hcb CSS files of the controls in this library):
235+
The one in the specific theme (here: sap\_bluecrystal) imports the above `library.source.less` from the base theme in this library and `base.less` and `global.less` from the specific theme in the core library (and all existing sap\_bluecrystal CSS files of the controls as well as `shared.css` in this library):
236236
```css
237237
@import "../base/library.source.less";
238-
@import "../../../../sap/ui/core/themes/sap_hcb/global.less";
238+
@import "../../../../sap/ui/core/themes/sap_bluecrystal/base.less";
239+
@import "../../../../sap/ui/core/themes/sap_bluecrystal/global.less";
239240
@import "shared.less";
240241

241242
@import "ActionListItem.less";
242243
...
243244
```
245+
Note that the relative paths, which are going up four levels and then descending into `sap/ui/core/themes/sap_bluecrystal`, do not correspond to the physical file locations of the sources, but to the file tree as it would exist at runtime (where the content of source folders like `sap.ui.core` and `themelib_sap_bluecrystal` is merged into one tree).
244246

245247
`shared.less` is by convention the name of a CSS file for library-level styles. It is handled and imported just like normal control CSS files, the separation is purely for better maintainability.
246248

0 commit comments

Comments
 (0)