0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

はじめに

react-to-printを使って、印刷用のページを作成していてcssのborderが効かない問題が発生しました。
解決したので、その方法を記載します。
Chakra UIを使用しているので、Chakra UIのコンポーネントを使用していますが、他のスタイル記述方法で同じ問題が起きるかどうかは確認できていません。

問題のコード

以下のコードはChakra UIのコンポーネントを使用しています。
できなかった例では、borderStyle,border,borderColorをそれぞれ分けて記述しています。

before

ボーダーが反映された例では、borderにまとめて記述しています。

after

おわりに

一人でも多くの方が解決できたら幸いです。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?