feat: Remove ionicons v2 dependency on widget (#3402)

This commit is contained in:
Pranav Raj S 2021-11-18 15:18:51 +05:30 committed by GitHub
parent c2b4991fd8
commit a3ba8f9e35
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 119 additions and 117 deletions

View file

@ -2,27 +2,30 @@
<div v-if="showHeaderActions" class="actions flex items-center">
<button
v-if="showPopoutButton"
class="button transparent compact new-window--button"
class="button transparent compact new-window--button "
@click="popoutWindow"
>
<span class="ion-android-open"></span>
<fluent-icon icon="open" size="22" class="text-black-900" />
</button>
<button
class="button transparent compact close-button"
:class="{
'rn-close-button': isRNWebView,
}"
@click="closeWindow"
>
<span class="ion-android-close" @click="closeWindow"></span>
<fluent-icon icon="dismiss" size="24" class="text-black-900" />
</button>
</div>
</template>
<script>
import { IFrameHelper, RNHelper } from 'widget/helpers/utils';
import { buildPopoutURL } from '../helpers/urlParamsHelper';
import FluentIcon from 'shared/components/FluentIcon/Index.vue';
export default {
name: 'HeaderActions',
components: { FluentIcon },
props: {
showPopoutButton: {
type: Boolean,
@ -85,10 +88,6 @@ export default {
span {
color: $color-heading;
font-size: $font-size-large;
&.ion-android-close {
font-size: $font-size-big;
}
}
.close-button {