File tree Expand file tree Collapse file tree 4 files changed +22
-4
lines changed
Elastic.Documentation.Site/Assets/markdown Expand file tree Collapse file tree 4 files changed +22
-4
lines changed Original file line number Diff line number Diff line change 1212 @apply bg-grey-10 border-b-1 border-b-black text-black;
1313 }
1414 }
15-
16- .applicable-info {
17- @apply cursor-pointer!;
15+
16+ .applies-item {
17+ @apply cursor-pointer text-inherit;
18+
19+ & : hover {
20+ @apply text-inherit;
21+ }
22+ .applicable-info {
23+ @apply cursor-pointer border-none bg-transparent p-0;
24+
25+ & : not (: last-child ): after {
26+ content : ',' ;
27+ }
28+ }
29+ .applicable-name ,
30+ .applicable-meta {
31+ @apply text-base;
32+ }
1833 }
1934
2035 .applies-switch-input {
Original file line number Diff line number Diff line change 22
33@foreach ( var item in Model .GetApplicabilityItems ())
44{
5- <span class =" applicable-info" data-tippy-content =" @(new HtmlString(item.RenderData.TooltipText))" >
5+ <span class =" applicable-info" data-tippy-content =" @(new HtmlString(Model.ShowTooltip ? item.RenderData.TooltipText : string.Empty ))" >
66 <span class =" applicable-name" >@item.Key </span >
77
88 @if (! string .IsNullOrEmpty (item .Key ) && (item .RenderData .ShowLifecycleName || item .RenderData .ShowVersion || ! string .IsNullOrEmpty (item .RenderData .BadgeLifecycleText )))
Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ public class ApplicableToViewModel
1313 private readonly ApplicabilityRenderer _applicabilityRenderer = new ( ) ;
1414
1515 public required bool Inline { get ; init ; }
16+
17+ public bool ShowTooltip { get ; init ; } = true ;
1618 public required ApplicableTo AppliesTo { get ; init ; }
1719 public required VersionsConfiguration VersionsConfig { get ; init ; }
1820
Original file line number Diff line number Diff line change 1616 {
1717 AppliesTo = Model .AppliesTo ,
1818 Inline = true ,
19+ ShowTooltip = false ,
1920 VersionsConfig = Model .BuildContext .VersionsConfiguration
2021 }))
2122 </span >
You can’t perform that action at this time.
0 commit comments