Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Commit

Permalink
Resolve PR issues #2
Browse files Browse the repository at this point in the history
  • Loading branch information
lookacat committed Apr 20, 2022
1 parent 6f3f8bb commit 0b8cb7c
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions src/components/atoms/OcContextualHelper/OcContextualHelper.vue
Original file line number Diff line number Diff line change
@@ -1,19 +1,26 @@
<template>
<div class="oc-contextual-helper">
<oc-button :id="`${buttonId}`" appearance="raw">
<oc-button :id="buttonId" appearance="raw">
<oc-icon name="question" fill-type="line" size="small" />
</oc-button>
<oc-drop :drop-id="dropId" :toggle="`#${buttonId}`" mode="click" close-on-click>
<div class="info-drop-content">
<span class="info-text" v-text="text" />
<p class="info-text" v-text="text" />
<ul v-if="list.length" class="info-list oc-pl-l">
<li v-for="(item, index) in list" :key="index" class="oc-pl-rm">
{{ item }}
</li>
</ul>
<span class="info-text-end" v-text="endText" />
<a v-if="readMoreLink" class="info-more-link" :href="readMoreLink" target="_blank"
>Read more</a
<p class="info-text-end" v-text="endText" />
<oc-button
v-if="readMoreLink"
v-translate
appearance="raw"
size="small"
class="info-more-link"
:href="readMoreLink"
target="_blank"
>Read more</oc-button
>
</div>
</oc-drop>
Expand All @@ -24,11 +31,12 @@
import uniqueId from "../../../utils/uniqueId"
import OcButton from "../../atoms/OcButton/OcButton.vue"
import OcIcon from "../../atoms/OcIcon/OcIcon.vue"
import OcDrop from "../../atoms/OcDrop/OcDrop.vue"
export default {
name: "OcContextualHelper",
status: "unreleased",
components: { OcButton, OcIcon },
components: { OcButton, OcIcon, OcDrop },
props: {
text: {
type: String,
Expand Down

0 comments on commit 0b8cb7c

Please sign in to comment.