Skip to content

Commit

Permalink
fix(ktabs): slotted anchor link color
Browse files Browse the repository at this point in the history
  • Loading branch information
portikM committed Oct 25, 2024
1 parent 2dbdd0a commit d5c0f98
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 6 deletions.
27 changes: 22 additions & 5 deletions docs/components/table-view.md
Original file line number Diff line number Diff line change
Expand Up @@ -518,11 +518,28 @@ The `rowKey` prop accepts either a unique string or a function that returns a un
If a string is provided which corresponds to a property of the `row`, the unique identifier will utilize the `row[rowKey]` as the unique identifier.

```html
<KTableView
row-key="id"
:data="tableData"
:headers="headers"
/>
<template>
<KTableView
row-key="id"
:data="tableData"
:headers="headers"
/>
</template>

<script setup lang="ts">
import type { TableViewData } from '@kong/kongponents'
const tableData: TableViewData = [
{
id: 'a70642b3-20f2-4658-b459-fe1cbcf9e315',
...
},
{
id: '58c599a9-f453-41f3-9e64-0a7fc6caedad',
...
}
]
</script>
```

Alternatively, if a function is passed, it allows for the creation of a custom identifier based on the row data passed to the function.
Expand Down
2 changes: 1 addition & 1 deletion src/components/KTabs/KTabs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ watch(() => props.modelValue, (newTabHash) => {
}
a, :deep(a) {
color: var(--kui-color-text, $kui-color-text);
// color: var(--kui-color-text, $kui-color-text);
text-decoration: none;
}
Expand Down

0 comments on commit d5c0f98

Please sign in to comment.