@@ -2,7 +2,7 @@ import Bootstrap from "@ui5/webcomponents-base/src/Bootstrap.js";
2
2
import UI5Element from "@ui5/webcomponents-base/src/UI5Element.js" ;
3
3
import litRender from "@ui5/webcomponents-base/src/renderer/LitRenderer.js" ;
4
4
import { isSpace } from "@ui5/webcomponents-base/src/events/PseudoEvents.js" ;
5
- import LinkType from "./types/LinkType .js" ;
5
+ import LinkDesign from "./types/LinkDesign .js" ;
6
6
7
7
// Template
8
8
import LinkRederer from "./build/compiled/LinkTemplate.lit.js" ;
@@ -60,17 +60,17 @@ const metadata = {
60
60
} ,
61
61
62
62
/**
63
- * Defines the <code>ui5-link</code> type .
63
+ * Defines the <code>ui5-link</code> design .
64
64
* <br><br>
65
65
* <b>Note:</b> Avaialble options are <code>Default</code>, <code>Subtle</code>, and <code>Emphasized</code>.
66
66
*
67
67
* @type {string }
68
68
* @defaultvalue "Default"
69
69
* @public
70
70
*/
71
- type : {
72
- type : LinkType ,
73
- defaultValue : LinkType . Default ,
71
+ design : {
72
+ type : LinkDesign ,
73
+ defaultValue : LinkDesign . Default ,
74
74
} ,
75
75
76
76
/**
@@ -137,7 +137,7 @@ const metadata = {
137
137
* <br><br>
138
138
* To create a visual hierarchy in large lists of links, you can set the less important links as
139
139
* <code>Subtle</code> or the more important ones as <code>Emphasized</code>
140
- * by using the <code>type </code> property.
140
+ * by using the <code>design </code> property.
141
141
* <br><br>
142
142
* If the <code>href</code> property is set, the link behaves as the basic HTML
143
143
* anchor tag (<code><a></code>) and opens the specified URL in the given target frame (<code>target</code> property).
@@ -252,8 +252,8 @@ class Link extends UI5Element {
252
252
return {
253
253
main : {
254
254
sapMLnk : true ,
255
- sapMLnkSubtle : this . type === LinkType . Subtle ,
256
- sapMLnkEmphasized : this . type === LinkType . Emphasized ,
255
+ sapMLnkSubtle : this . design === LinkDesign . Subtle ,
256
+ sapMLnkEmphasized : this . design === LinkDesign . Emphasized ,
257
257
sapMLnkWrapping : this . wrap ,
258
258
sapMLnkDsbl : this . disabled ,
259
259
sapMLnkMaxWidth : true ,
0 commit comments